From e7495a27da54ad8b6eb7400667396c330d53a4cf Mon Sep 17 00:00:00 2001 From: David ML Date: Sun, 5 May 2019 19:57:44 +0200 Subject: [PATCH] fix(edit unit test): edit unit test edit unit test --- test/devices.test.ts | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/test/devices.test.ts b/test/devices.test.ts index 739e2e2..3f91dfe 100644 --- a/test/devices.test.ts +++ b/test/devices.test.ts @@ -8,27 +8,4 @@ describe('Devices Test', () => { const devices = new Devices({} as any) expect(devices instanceof Devices).toBeTruthy() }) - - describe('getDeviceInfo() call', () => { - it('should return device obj', async () => { - nock(API_CONFIG.baseURL) - .get(`/devices/9E1F98`) - .reply(200) - const devices = new Devices({} as any) - const result = await devices.getDeviceInfo('9E1F98') - expect(result).toMatchSnapshot() - }) - - it('should return error', async () => { - const devices = new Devices({} as any) - try { - nock(API_CONFIG.baseURL) - .get(`/devices/9E1F98`) - .reply(404) - await devices.getDeviceInfo('9E1F98') - } catch (error) { - expect(error).toMatchSnapshot() - } - }) - }) })