Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
donavanbecker committed Oct 31, 2023
1 parent bf389e8 commit f56e0f3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions test/e2e/config-editor.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ describe('ConfigEditorController (e2e)', () => {
it('POST /config-editor (accept bridge.pin if a valid value is provided)', async () => {
const currentConfig = await fs.readJson(configFilePath);

currentConfig.bridge.pin = '111-11-111';
currentConfig.bridge.pin = '1111-1111';

const res = await app.inject({
method: 'POST',
Expand All @@ -366,7 +366,7 @@ describe('ConfigEditorController (e2e)', () => {

// check the updates were saved to disk and mistakes corrected
const savedConfig: HomebridgeConfig = await fs.readJson(configFilePath);
expect(savedConfig.bridge.pin).toBe('111-11-111');
expect(savedConfig.bridge.pin).toBe('1111-1111');
});

it('POST /config-editor (correct bridge.name if an invalid value is provided)', async () => {
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/server.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ describe('ServerController (e2e)', () => {
expect(res.json()).toEqual({
displayName: 'Homebridge Test',
isPaired: false,
pincode: '874-99-441',
pincode: '8749-9441',
setupCode: 'X-HM://0024X0Z3L1FAP',
});
});
Expand Down
2 changes: 1 addition & 1 deletion test/mocks/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"bridge": {
"name": "Homebridge Test",
"port": 51826,
"pin": "874-99-441",
"pin": "8749-9441",
"username": "67:E4:1F:0E:A0:5D"
},
"accessories": [],
Expand Down
2 changes: 1 addition & 1 deletion test/mocks/persist/AccessoryInfo.67E41F0EA05D.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"displayName": "Homebridge Test",
"category": 2,
"pincode": "874-99-441",
"pincode": "8749-9441",
"signSk": "fb7ecc3daa9b495d5867b49268af7568d52c4ab708e334809932976340d7a11f25e05221aa6ad3dbf4d7213e112db08752e6d94820e49038c58bc564b688626f",
"signPk": "25e05221aa6ad3dbf4d7213e112db08752e6d94820e49038c58bc564b688626f",
"pairedClients": {},
Expand Down

0 comments on commit f56e0f3

Please sign in to comment.