Skip to content

Commit

Permalink
fix: remove snapshots from #26 (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
brunohkbx authored Sep 7, 2020
1 parent e598542 commit 3f5aa05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 32 deletions.
28 changes: 0 additions & 28 deletions src/__tests__/__snapshots__/to-have-style.js.snap

This file was deleted.

6 changes: 2 additions & 4 deletions src/__tests__/to-have-style.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ describe('.toHaveStyle', () => {
const container = getByTestId('container');
expect(() =>
expect(container).toHaveStyle({ backgroundColor: 'blue', transform: [{ scale: 1 }] }),
).toThrowErrorMatchingSnapshot();
).toThrowError();
expect(() => expect(container).toHaveStyle({ fontWeight: 'bold' })).toThrowError();
expect(() => expect(container).not.toHaveStyle({ color: 'black' })).toThrowError();
});
Expand Down Expand Up @@ -83,8 +83,6 @@ describe('.toHaveStyle', () => {
);

const container = getByTestId('container');
expect(() =>
expect(container).toHaveStyle({ transform: [{ scale: 1 }] }),
).toThrowErrorMatchingSnapshot();
expect(() => expect(container).toHaveStyle({ transform: [{ scale: 1 }] })).toThrowError();
});
});

0 comments on commit 3f5aa05

Please sign in to comment.