From 6ab0edc9d418abb42ba32d362e6b0387d1f66a3f Mon Sep 17 00:00:00 2001 From: Vadim Dalecky Date: Thu, 15 Jun 2023 02:21:53 +0200 Subject: [PATCH] =?UTF-8?q?test:=20=F0=9F=92=8D=20remove=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/__tests__/volume/callback-error.test.ts | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 src/__tests__/volume/callback-error.test.ts diff --git a/src/__tests__/volume/callback-error.test.ts b/src/__tests__/volume/callback-error.test.ts deleted file mode 100644 index 45b278bce..000000000 --- a/src/__tests__/volume/callback-error.test.ts +++ /dev/null @@ -1,15 +0,0 @@ -jest.useFakeTimers('modern'); - -// Fixes https://github.com/streamich/memfs/issues/542 -it('should throw error instead of callback', () => { - const { Volume } = require('../../volume'); - const vol = new Volume(); - - vol.writeFile('/asdf.txt', 'asdf', 'utf8', err => { - if (!err) { - throw new Error('try to trigger catch'); - } - }); - - expect(() => jest.runAllTimers()).toThrow('try to trigger catch'); -});