Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Dosant committed Apr 7, 2021
1 parent 9a100fe commit b6f8d1b
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ describe('SearchSessionService', () => {
};
service = new SearchSessionService(mockLogger, config);
const coreStart = coreMock.createStart();
const mockTaskManager = taskManagerMock.createStart();
mockTaskManager = taskManagerMock.createStart();
await flushPromises();
await service.start(coreStart, {
taskManager: mockTaskManager,
Expand Down Expand Up @@ -182,14 +182,6 @@ describe('SearchSessionService', () => {
expect(mockTaskManager.ensureScheduled).toHaveBeenCalled();
});

describe('save', () => {
it('throws if `name` is not provided', () => {
expect(() =>
service.save({ savedObjectsClient }, mockUser1, sessionId, {})
).rejects.toMatchInlineSnapshot(`[Error: Name is required]`);
});


describe('save', () => {
it('throws if `name` is not provided', () => {
expect(() =>
Expand Down

0 comments on commit b6f8d1b

Please sign in to comment.