Additional tests
This commit is contained in:
@ -4,3 +4,9 @@ const {httpPut} = require('./_30s.js');
|
||||
test('httpPut is a Function', () => {
|
||||
expect(httpPut).toBeInstanceOf(Function);
|
||||
});
|
||||
test('httpPut does not throw errors', () => {
|
||||
expect(() => {
|
||||
httpPut('http://localhost', x => x, console.log);
|
||||
httpPut('http://localhost', x => x);
|
||||
}).not.toThrow(TypeError);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user