Additional tests

This commit is contained in:
Angelos Chalaris
2018-11-10 13:55:04 +02:00
parent b772c4e6c0
commit fef835355b
4 changed files with 24 additions and 0 deletions

View File

@ -4,3 +4,9 @@ const {httpGet} = require('./_30s.js');
test('httpGet is a Function', () => {
expect(httpGet).toBeInstanceOf(Function);
});
test('httpGet does not throw errors', () => {
expect(() => {
httpGet('http://localhost', x => x, console.log);
httpGet('http://localhost', x => x);
}).not.toThrow(TypeError);
});