expect status 200 and type object
This commit is contained in:
parent
d31e6927dd
commit
be7f4e5a16
4
.history/IOT/test/listUsers_20230411110454.js
Normal file
4
.history/IOT/test/listUsers_20230411110454.js
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
const { assert } = chai;
|
||||||
|
|
||||||
|
const response1 = await insomnia.send();
|
||||||
|
assert.equal(response1.status, 200);
|
6
.history/IOT/test/listUsers_20230411113629.js
Normal file
6
.history/IOT/test/listUsers_20230411113629.js
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
const { expect } = chai;
|
||||||
|
|
||||||
|
const response1 = await insomnia.send();
|
||||||
|
expect(response1.status).to.equal(200);
|
||||||
|
const body = JSON.parse(response1.data);
|
||||||
|
expect(body).to.be.an('object');
|
6
.history/IOT/test/listUsers_20230411114246.js
Normal file
6
.history/IOT/test/listUsers_20230411114246.js
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
const { expect } = chai;
|
||||||
|
|
||||||
|
const response1 = await insomnia.send();
|
||||||
|
expect(response1.status).to.equal(200);
|
||||||
|
const body = JSON.parse(response1.data);
|
||||||
|
expect(body).to.be.an('object');
|
@ -1,8 +1,6 @@
|
|||||||
const response1 = await insomnia.send();
|
const { expect } = chai;
|
||||||
const body = JSON.parse(response1.data);
|
|
||||||
//const item = body[0];
|
|
||||||
|
|
||||||
|
const response1 = await insomnia.send();
|
||||||
|
expect(response1.status).to.equal(200);
|
||||||
|
const body = JSON.parse(response1.data);
|
||||||
expect(body).to.be.an('object');
|
expect(body).to.be.an('object');
|
||||||
//expect(item).to.be.an('');
|
|
||||||
//expect(response1.status).to.equal(200);
|
|
||||||
//expect(item).to.have.property('symbol');
|
|
Loading…
x
Reference in New Issue
Block a user