replace with custom superagent based on fetch API
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
const common = require('./common.js'),
|
||||
expect = require('expect.js'),
|
||||
superagent = require('superagent');
|
||||
superagent = require('../../superagent.js');
|
||||
|
||||
describe('External LDAP API', function () {
|
||||
const { setup, cleanup, serverUrl, owner } = common;
|
||||
@@ -23,7 +23,7 @@ describe('External LDAP API', function () {
|
||||
const response = await superagent.get(`${serverUrl}/api/v1/external_ldap/config`)
|
||||
.query({ access_token: owner.token });
|
||||
|
||||
expect(response.statusCode).to.equal(200);
|
||||
expect(response.status).to.equal(200);
|
||||
expect(response.body).to.eql(defaultConfig);
|
||||
});
|
||||
|
||||
@@ -35,7 +35,7 @@ describe('External LDAP API', function () {
|
||||
.query({ access_token: owner.token })
|
||||
.send(config);
|
||||
|
||||
expect(response.statusCode).to.equal(200);
|
||||
expect(response.status).to.equal(200);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user