Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Mar 4, 2019
1 parent 1cb7665 commit 68d9748
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/jest-mock/src/__tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -880,6 +880,14 @@ describe('moduleMocker', () => {
expect(fn1()).toEqual('abcd');
expect(fn2()).toEqual('abcde');
});

it('handles a property called `prototype`', () => {
expect(() =>
moduleMocker.generateFromMetadata(
moduleMocker.getMetadata({prototype: 1}),
),
).not.toThrow();
});
});
});

Expand Down

0 comments on commit 68d9748

Please sign in to comment.