Skip to content

Commit 5020be8

Browse files
committed
style(MongoMemoryServer.test): remove unused "ts-expect-error" directive
1 parent 256d65b commit 5020be8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/mongodb-memory-server-core/src/__tests__/MongoMemoryServer.test.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@ describe('MongoMemoryServer', () => {
2626
describe('start()', () => {
2727
it('should not error if an MongoInstanceData is resolved by _startUpInstance', async () => {
2828
const mongoServer = new MongoMemoryServer();
29-
jest
30-
.spyOn(mongoServer, '_startUpInstance')
31-
// @ts-expect-error expect an error here rather than an "as any"
32-
.mockImplementationOnce(() => Promise.resolve({}));
29+
jest.spyOn(mongoServer, '_startUpInstance').mockImplementationOnce(() => Promise.resolve());
3330

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

0 commit comments

Comments
 (0)