diff --git a/.history/IOT/test/listUsers_20230411110454.js b/.history/IOT/test/listUsers_20230411110454.js new file mode 100644 index 0000000..fdb10dd --- /dev/null +++ b/.history/IOT/test/listUsers_20230411110454.js @@ -0,0 +1,4 @@ +const { assert } = chai; + +const response1 = await insomnia.send(); +assert.equal(response1.status, 200); \ No newline at end of file diff --git a/.history/IOT/test/listUsers_20230411113629.js b/.history/IOT/test/listUsers_20230411113629.js new file mode 100644 index 0000000..29debe9 --- /dev/null +++ b/.history/IOT/test/listUsers_20230411113629.js @@ -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'); \ No newline at end of file diff --git a/.history/IOT/test/listUsers_20230411114246.js b/.history/IOT/test/listUsers_20230411114246.js new file mode 100644 index 0000000..235bbfa --- /dev/null +++ b/.history/IOT/test/listUsers_20230411114246.js @@ -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'); diff --git a/IOT/test/listUsers.js b/IOT/test/listUsers.js index 790ece8..235bbfa 100644 --- a/IOT/test/listUsers.js +++ b/IOT/test/listUsers.js @@ -1,8 +1,6 @@ -const response1 = await insomnia.send(); -const body = JSON.parse(response1.data); -//const item = body[0]; +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'); -//expect(item).to.be.an(''); -//expect(response1.status).to.equal(200); -//expect(item).to.have.property('symbol'); \ No newline at end of file