Skip to content

Commit

Permalink
Fix failing test (#1140)
Browse files Browse the repository at this point in the history
## Problem

After merged #1116 the network model test is broken

## Solution

Fixed test
  • Loading branch information
teclator authored Apr 9, 2024
2 parents 7df6f83 + cec1be0 commit ada6305
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions web/src/client/network/model.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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", () => {
Expand Down

0 comments on commit ada6305

Please sign in to comment.