Skip to content

Commit 08f8db3

Browse files
committed
chore[tests]: cleanup tests from previous work
1 parent bbdddb5 commit 08f8db3

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

test/index.ts

+1-17
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,7 @@ describe("Low-level API tests", async () => {
7373

7474
it('Login and get "me"', async () => {
7575
nock("https://auth.tado.com").post("/oauth/token").reply(200, auth_response);
76-
nock("https://my.tado.com")
77-
.get("/api/v2/me")
78-
.reply(200, me_response)
79-
.get("/api/v2/me")
80-
.reply(200, me_response) // Needed twice otherwise consumed by login
81-
.get("/api/v2/homes/1907")
82-
.reply(200, home_response);
76+
nock("https://my.tado.com").get("/api/v2/me").reply(200, me_response);
8377

8478
const tado = new Tado();
8579
await tado.login("username", "password");
@@ -111,11 +105,6 @@ describe("High-level API tests (v2)", async () => {
111105

112106
beforeEach(async () => {
113107
nock("https://auth.tado.com").post("/oauth/token").reply(200, auth_response);
114-
nock("https://my.tado.com")
115-
.get("/api/v2/me")
116-
.reply(200, me_response)
117-
.get("/api/v2/homes/1907")
118-
.reply(200, home_response);
119108

120109
tado = new Tado();
121110
await tado.login("username", "password");
@@ -840,11 +829,6 @@ describe("High-level API tests (TadoX)", async () => {
840829

841830
beforeEach(async () => {
842831
nock("https://auth.tado.com").post("/oauth/token").reply(200, auth_response);
843-
nock("https://my.tado.com")
844-
.get("/api/v2/me")
845-
.reply(200, me_response)
846-
.get("/api/v2/homes/1907")
847-
.reply(200, home_response_x);
848832

849833
tado = new TadoX();
850834
await tado.login("username", "password");

0 commit comments

Comments
 (0)