T-DEV-811/IOT/test/testGet.js

7 lines
181 B
JavaScript
Raw Normal View History

2023-04-11 11:43:24 +02:00
const { expect } = chai;
2023-04-11 11:00:25 +02:00
const response1 = await insomnia.send();
2023-04-11 11:43:24 +02:00
expect(response1.status).to.equal(200);
2023-04-11 11:00:25 +02:00
const body = JSON.parse(response1.data);
expect(body).to.be.an('object');