Skip to content

Commit

Permalink
style(MongoMemoryServer.test): remove unused "ts-expect-error" directive
Browse files Browse the repository at this point in the history
  • Loading branch information
hasezoey committed Sep 25, 2022
1 parent 256d65b commit 5020be8
Showing 1 changed file with 1 addition and 4 deletions.
Expand Up @@ -26,10 +26,7 @@ describe('MongoMemoryServer', () => {
describe('start()', () => {
it('should not error if an MongoInstanceData is resolved by _startUpInstance', async () => {
const mongoServer = new MongoMemoryServer();
jest
.spyOn(mongoServer, '_startUpInstance')
// @ts-expect-error expect an error here rather than an "as any"
.mockImplementationOnce(() => Promise.resolve({}));
jest.spyOn(mongoServer, '_startUpInstance').mockImplementationOnce(() => Promise.resolve());

expect(mongoServer._startUpInstance).not.toHaveBeenCalled();

Expand Down

0 comments on commit 5020be8

Please sign in to comment.