From cec1be03d91421ced80fefa4b90a04f7480692fb Mon Sep 17 00:00:00 2001 From: Knut Anderssen Date: Tue, 9 Apr 2024 14:47:18 +0100 Subject: [PATCH] Fix failing test --- web/src/client/network/model.test.js | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/web/src/client/network/model.test.js b/web/src/client/network/model.test.js index b2c18747bb..e953552772 100644 --- a/web/src/client/network/model.test.js +++ b/web/src/client/network/model.test.js @@ -45,17 +45,16 @@ describe("createConnection", () => { const addresses = [{ address: "192.168.0.1", prefix: 24 }]; const connection = createConnection({ addresses, testing: 1 }); expect(connection.method4).toEqual("auto"); - expect(connection.gateway4).toEqual("auto"); - expect(connection.addresses).toEqual([]); - expect(connection.nameservers).toEqual(addresses); + expect(connection.gateway4).toEqual(""); + expect(connection.addresses).toEqual(addresses); + expect(connection.nameservers).toEqual([]); }); -}); -it("adds a wireless key when given", () => { - const wireless = { ssid: "MY_WIRELESS" }; - const connection = createConnection({ id: "Wireless connection 1", wireless }); - expect(connection.wireless).toEqual(wireless); -}); + it("adds a wireless key when given", () => { + const wireless = { ssid: "MY_WIRELESS" }; + const connection = createConnection({ id: "Wireless connection 1", wireless }); + expect(connection.wireless).toEqual(wireless); + }); }); describe("createAccessPoint", () => {