Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
kinyoklion committed Sep 30, 2024
1 parent 7df3547 commit 15adf36
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/sdk/browser/__tests__/BrowserDataManager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ describe('given a BrowserDataManager with mocked dependencies', () => {

let identifyResolve: () => void;
let identifyReject: (err: Error) => void;
const identifyResolveCalled = new Promise<void>((resolve) => {
await new Promise<void>((resolve) => {
identifyResolve = jest.fn().mockImplementation(() => {
resolve();
});
Expand All @@ -218,7 +218,6 @@ describe('given a BrowserDataManager with mocked dependencies', () => {
// this is the function under test
dataManager.identify(identifyResolve, identifyReject, context, identifyOptions);
});
await identifyResolveCalled;

expect(logger.debug).toHaveBeenCalledWith(
'[BrowserDataManager] Identify - Flags loaded from cache. Continuing to initialize via a poll.',
Expand All @@ -239,7 +238,7 @@ describe('given a BrowserDataManager with mocked dependencies', () => {

let identifyResolve: () => void;
let identifyReject: (err: Error) => void;
const identifyResolveCalled = new Promise<void>((resolve) => {
await new Promise<void>((resolve) => {
identifyResolve = jest.fn().mockImplementation(() => {
resolve();
});
Expand All @@ -248,7 +247,6 @@ describe('given a BrowserDataManager with mocked dependencies', () => {
// this is the function under test
dataManager.identify(identifyResolve, identifyReject, context, identifyOptions);
});
await identifyResolveCalled;

expect(logger.debug).not.toHaveBeenCalledWith(
'Identify - Flags loaded from cache. Continuing to initialize via a poll.',
Expand Down

0 comments on commit 15adf36

Please sign in to comment.