api-test.js
it('should return response', async () => { const result = await API.get('/test', {}); expect(result).to.deep.equal({hello: 'world', meta: {status: 200}}); });