Skip to content

Commit

Permalink
fixed test broken by field rename
Browse files Browse the repository at this point in the history
  • Loading branch information
gmmorris committed May 18, 2020
1 parent d5bddce commit 278b375
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ test(`allows all wrappers to be excluded`, () => {
expect(secondClientWrapperFactoryMock).not.toHaveBeenCalled();
});

test(`allows typed to be excluded`, () => {
test(`allows typed to be included`, () => {
const defaultClient = Symbol();
const defaultClientFactoryMock = jest.fn().mockReturnValue(defaultClient);
const clientProvider = new SavedObjectsClientProvider({
Expand All @@ -178,12 +178,12 @@ test(`allows typed to be excluded`, () => {
const request = Symbol();

const actualClient = clientProvider.getClient(request, {
extraTypes: ['task'],
includedHiddenTypes: ['task'],
});

expect(actualClient).toBe(defaultClient);
expect(defaultClientFactoryMock).toHaveBeenCalledWith({
request,
extraTypes: ['task'],
includedHiddenTypes: ['task'],
});
});

0 comments on commit 278b375

Please sign in to comment.