test: fix support test
This commit is contained in:
@@ -31,7 +31,7 @@ describe('Support API', function () {
|
||||
it('enable remote support', async function () {
|
||||
const response = await superagent.post(`${serverUrl}/api/v1/support/remote_support`)
|
||||
.query({ access_token: owner.token })
|
||||
.send({ enable: true });
|
||||
.send({ enabled: true });
|
||||
|
||||
expect(response.statusCode).to.equal(202);
|
||||
|
||||
@@ -50,7 +50,7 @@ describe('Support API', function () {
|
||||
it('enable remote support (again)', async function () {
|
||||
const response = await superagent.post(`${serverUrl}/api/v1/support/remote_support`)
|
||||
.query({ access_token: owner.token })
|
||||
.send({ enable: true });
|
||||
.send({ enabled: true });
|
||||
expect(response.statusCode).to.equal(202);
|
||||
|
||||
let data = await fs.promises.readFile(authorizedKeysFile, 'utf8');
|
||||
@@ -61,7 +61,7 @@ describe('Support API', function () {
|
||||
it('disable remote support', async function () {
|
||||
const response = await superagent.post(`${serverUrl}/api/v1/support/remote_support`)
|
||||
.query({ access_token: owner.token })
|
||||
.send({ enable: false });
|
||||
.send({ enabled: false });
|
||||
|
||||
expect(response.statusCode).to.equal(202);
|
||||
|
||||
@@ -73,7 +73,7 @@ describe('Support API', function () {
|
||||
it('disable remote support (again)', async function () {
|
||||
const response = await superagent.post(`${serverUrl}/api/v1/support/remote_support`)
|
||||
.query({ access_token: owner.token })
|
||||
.send({ enable: false });
|
||||
.send({ enabled: false });
|
||||
|
||||
expect(response.statusCode).to.equal(202);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user