Skip to content

Commit

Permalink
[#155] Addition of tests
Browse files Browse the repository at this point in the history
Co-authored-by: Leticia Araujo <[email protected]>
Co-authored-by: Amanda Muniz <[email protected]>
  • Loading branch information
leticiaarj and AmandaMuniz committed Apr 8, 2021
1 parent e3b2c87 commit 6bc9de5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 23 deletions.
23 changes: 0 additions & 23 deletions app/src/tests/components/StoryList.test.js

This file was deleted.

13 changes: 13 additions & 0 deletions app/src/tests/components/StorySnackBar.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import MessageSnackbar from '../../components/StorySnackbar';
import Adapter from 'enzyme-adapter-react-16';
import Enzyme from 'enzyme';

Enzyme.configure({ adapter: new Adapter() });

describe('Testing StorySnackBar', () => {

it('should render as expected', function() {
const tree = MessageSnackbar({notification_text: 'test'}, {handleClose: () => jest.fn()}, {variant: "success" });
expect(tree).toMatchSnapshot();
});
});

0 comments on commit 6bc9de5

Please sign in to comment.