Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
peuter committed Jan 4, 2024
1 parent 0ced0a7 commit 4fd63ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/test/karma/ui/structure/tile/elements/Backend-spec.js
Expand Up @@ -32,9 +32,10 @@ describe('testing the <cv-backend> component of the tile structure', () => {
oldController = cv.Application.structureController;
cv.Application.structureController = cv.ui.structure.tile.Controller.getInstance();

clientMock = jasmine.createSpyObj('client', ['login', 'subscribe', 'terminate', 'dispose'], {update: null});
clientMock = jasmine.createSpyObj('client', ['login', 'subscribe', 'terminate', 'dispose'], {update: null, configuredIn: 'config'});

spyOn(cv.io.BackendConnections, 'addBackendClient').and.returnValue(clientMock);
spyOn(cv.io.BackendConnections, 'getClient').and.returnValue(clientMock);
const model = cv.data.Model.getInstance();
spyOn(model, 'getAddresses').and.returnValue(['addr1']);
spyOn(model, 'setDefaultBackendName');
Expand Down Expand Up @@ -128,7 +129,6 @@ describe('testing the <cv-backend> component of the tile structure', () => {
const second = document.createElement('cv-backend');
second.setAttribute('type', 'knxd');
cv.io.BackendConnections.hasClient.and.callThrough();
spyOn(cv.io.BackendConnections, 'getClient').and.callFake(() => ({ configuredIn: 'config'}));

spyOn(qx.log.Logger, 'warn').and.callFake(() => null);
document.body.appendChild(second);
Expand Down

0 comments on commit 4fd63ee

Please sign in to comment.