Additional tests
This commit is contained in:
@ -4,3 +4,9 @@ const {httpDelete} = require('./_30s.js');
|
||||
test('httpDelete is a Function', () => {
|
||||
expect(httpDelete).toBeInstanceOf(Function);
|
||||
});
|
||||
test('httpDelete does not throw errors', () => {
|
||||
expect(() => {
|
||||
httpDelete('http://localhost', x => x, console.log);
|
||||
httpDelete('http://localhost', x => x);
|
||||
}).not.toThrow(TypeError);
|
||||
});
|
||||
|
||||
@ -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);
|
||||
});
|
||||
@ -4,3 +4,9 @@ const {httpPost} = require('./_30s.js');
|
||||
test('httpPost is a Function', () => {
|
||||
expect(httpPost).toBeInstanceOf(Function);
|
||||
});
|
||||
test('httpPost does not throw errors', () => {
|
||||
expect(() => {
|
||||
httpPost('http://localhost', x => x, console.log);
|
||||
httpPost('http://localhost', x => x);
|
||||
}).not.toThrow(TypeError);
|
||||
});
|
||||
|
||||
@ -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