Skip to content

Commit

Permalink
chore: fix test in store.spec.js
Browse files Browse the repository at this point in the history
  • Loading branch information
SteKoe committed Dec 20, 2022
1 parent 4854284 commit d1eaf81
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions spring-boot-admin-server-ui/src/main/frontend/store.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,17 @@ describe('store.js', () => {
let mockSubject;
jest.spyOn(Application, 'getStream').mockImplementation(() => mockSubject);

const changedListener = jest.fn();
const addedListener = jest.fn();
const updateListener = jest.fn();
const removedListener = jest.fn();
let changedListener;
let addedListener;
let updateListener;
let removedListener;

beforeEach(() => {
changedListener = jest.fn();
addedListener = jest.fn();
updateListener = jest.fn();
removedListener = jest.fn();

mockSubject = new ReplaySubject();
applicationStore = new ApplicationStore();
applicationStore.start();
Expand Down

0 comments on commit d1eaf81

Please sign in to comment.