diff options
Diffstat (limited to 'test/react/ModalFooter.spec.js')
-rw-r--r-- | test/react/ModalFooter.spec.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/react/ModalFooter.spec.js b/test/react/ModalFooter.spec.js new file mode 100644 index 0000000..e4e3f5b --- /dev/null +++ b/test/react/ModalFooter.spec.js @@ -0,0 +1,11 @@ +import React from 'react'; +import ModalFooter from '../../src/react/ModalFooter.js'; + +import renderer from 'react-test-renderer'; + +describe('ModalFooter', () => { + test('basic test', () => { + const footer = renderer.create(<ModalFooter closeButtonText='Ok'/>).toJSON(); + expect(footer).toMatchSnapshot(); + }); +});
\ No newline at end of file |