Skip to content

Commit

Permalink
Update src/core/public/integrations/moment/moment_service.test.ts
Browse files Browse the repository at this point in the history
Co-Authored-By: Mikhail Shustov <[email protected]>
  • Loading branch information
jbudz and mshustov authored Mar 3, 2020
1 parent c23333b commit c7e412d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/core/public/integrations/moment/moment_service.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,8 @@ describe('MomentService', () => {

it('uses the default timezone when a zone is not defined', async () => {
const tz$ = new BehaviorSubject('timezone/undefined');
const dow$ = new BehaviorSubject('dow1');

const uiSettings = uiSettingsServiceMock.createSetupContract();
uiSettings.get$.mockReturnValueOnce(tz$).mockReturnValueOnce(dow$);
uiSettings.get$.mockReturnValueOnce(tz$);

service.start({ uiSettings });
await flushPromises();
Expand Down

0 comments on commit c7e412d

Please sign in to comment.