Skip to content

Commit

Permalink
mock jest fn
Browse files Browse the repository at this point in the history
  • Loading branch information
thompsongl committed Jan 14, 2020
1 parent d5925c4 commit 3cf4119
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ describe('chartSelectors', () => {
type: 'linemark'
},
{
color: '##da8b45',
color: '#da8b45',
data: [
{ x: 0, y: 300 },
{ x: 1000, y: 400 }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {

jest.mock('uuid', () => {
return {
v1: jest.fn(() => 'uuid.v1()'),
v4: jest.fn(() => 'uuid.v4()'),
};
});
Expand Down

0 comments on commit 3cf4119

Please sign in to comment.