From 557e9e385a752cecbd8b5dd10b840fd625ac8d9a Mon Sep 17 00:00:00 2001 From: Eslam El-Hakmey Date: Thu, 6 Jun 2019 19:56:47 +0200 Subject: [PATCH] test: delete unnecessary tests --- test/ContentBase.test.js | 40 ---------------------------------------- 1 file changed, 40 deletions(-) diff --git a/test/ContentBase.test.js b/test/ContentBase.test.js index 159c085b74..76392782df 100644 --- a/test/ContentBase.test.js +++ b/test/ContentBase.test.js @@ -293,46 +293,6 @@ describe('ContentBase', () => { }); }); - describe('testing single & multiple internal paths', () => { - afterAll((done) => { - testServer.close(() => { - done(); - }); - }); - it('Should not throw exception (string)', (done) => { - try { - // eslint-disable-next-line no-unused-vars - server = testServer.start(config, { - port: 9002, - contentBase: contentBasePublic, - watchContentBase: true, - }); - - server.close(() => { - done(); - }); - } catch (e) { - expect(true).toBe(false); - } - }); - it('Should not throw exception (array)', (done) => { - try { - // eslint-disable-next-line no-unused-vars - server = testServer.start(config, { - port: 9001, - contentBase: [contentBasePublic, contentBaseOther], - watchContentBase: true, - }); - - server.close(() => { - done(); - }); - } catch (e) { - expect(true).toBe(false); - } - }); - }); - describe('default to PWD', () => { beforeAll((done) => { jest.spyOn(process, 'cwd').mockImplementation(() => contentBasePublic);