Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
benzekrimaha committed Oct 17, 2024
1 parent fb64f94 commit 147e0d4
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions tests/unit/api/BackbeatAPI.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const config = require('../../../lib/Config');
const fakeLogger = require('../../utils/fakeLogger');
const setupIngestionSiteMock = require('../../utils/mockIngestionSite');
const locationConfig = require('../../../conf/locationConfig.json');
const ZookeeperManager = require('../../../lib/clients/ZookeeperManager');
const sinon = require('sinon');

describe('BackbeatAPI', () => {
Expand Down Expand Up @@ -215,16 +214,14 @@ describe('BackbeatAPI', () => {

describe('_setZookeeper', () => {
let zkManagerArgs;
beforeEach(() => {
class MockZookeeperManager {
constructor(url, options, logger) {
zkManagerArgs = { url, options, logger };
this.once = sinon.stub();
this.removeAllListeners = sinon.stub();
}
}
});

class MockZookeeperManager {
constructor(url, options, logger) {
zkManagerArgs = { url, options, logger };
this.once = sinon.stub();
this.removeAllListeners = sinon.stub();
}
}
afterEach(() => {
sinon.restore();
});
Expand Down

0 comments on commit 147e0d4

Please sign in to comment.