Skip to content

Commit

Permalink
fix new test due to rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed Dec 6, 2019
1 parent c078836 commit 31a9c38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/server/plugins/plugin_context.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
*/

import { duration } from 'moment';
import { BehaviorSubject } from 'rxjs';
import { first } from 'rxjs/operators';
import { createPluginInitializerContext } from './plugin_context';
import { CoreContext } from '../core_context';
import { Env, ObjectToConfigAdapter } from '../config';
import { Env } from '../config';
import { loggingServiceMock } from '../logging/logging_service.mock';
import { rawConfigServiceMock } from '../config/raw_config_service.mock';
import { getEnvOptions } from '../config/__mocks__/env';
import { PluginManifest } from './types';
import { Server } from '../server';
Expand Down Expand Up @@ -54,7 +54,7 @@ describe('Plugin Context', () => {
beforeEach(async () => {
coreId = Symbol('core');
env = Env.createDefault(getEnvOptions());
const config$ = new BehaviorSubject(new ObjectToConfigAdapter({}));
const config$ = rawConfigServiceMock.create({ rawConfig: {} });
server = new Server(config$, env, logger);
await server.setupConfigSchemas();
coreContext = { coreId, env, logger, configService: server.configService };
Expand Down

0 comments on commit 31a9c38

Please sign in to comment.