Skip to content

Commit d3d8ded

Browse files
committed
Add hostname
1 parent 001d95c commit d3d8ded

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/apifetch.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe('apifetch', function() {
1010
fetchMock.get('*', { response: 200 });
1111
const expect = {response: 200};
1212

13-
apifetch('sitekey', 'search', {paging:{}, keyword: 'foo'}, (res) => {
13+
apifetch('api.addsearch.com', 'sitekey', 'search', {paging:{}, keyword: 'foo'}, (res) => {
1414
assert.deepEqual(res, expect);
1515
});
1616
});
@@ -20,7 +20,7 @@ describe('apifetch', function() {
2020
fetchMock.get('*', 'foo');
2121
const expect = 400;
2222

23-
apifetch('sitekey', 'ping', {paging:{}, keyword: 'foo'}, (res) => {
23+
apifetch('api.addsearch.com', 'sitekey', 'ping', {paging:{}, keyword: 'foo'}, (res) => {
2424
assert.equal(res.error.response, expect);
2525
});
2626
});

0 commit comments

Comments
 (0)