Skip to content

Commit

Permalink
test that generating a mock actually works, not just that it doesn't …
Browse files Browse the repository at this point in the history
…explode
  • Loading branch information
SimenB committed Mar 4, 2019
1 parent 68d9748 commit 37c3f3e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/jest-mock/src/__tests__/index.test.ts
Expand Up @@ -882,11 +882,11 @@ describe('moduleMocker', () => {
});

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

expect(mock.prototype).toBe();
});
});
});
Expand Down

0 comments on commit 37c3f3e

Please sign in to comment.