Skip to content

Commit

Permalink
test: delete unnecessary tests
Browse files Browse the repository at this point in the history
  • Loading branch information
EslamHiko committed Jun 6, 2019
1 parent c853649 commit 557e9e3
Showing 1 changed file with 0 additions and 40 deletions.
40 changes: 0 additions & 40 deletions test/ContentBase.test.js
Expand Up @@ -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);
Expand Down

0 comments on commit 557e9e3

Please sign in to comment.