Skip to content

Commit

Permalink
fix: unit test
Browse files Browse the repository at this point in the history
Signed-off-by: SuZhou-Joe <[email protected]>
  • Loading branch information
SuZhou-Joe committed Mar 4, 2024
1 parent bed5936 commit b38f8a0
Showing 1 changed file with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,11 @@ describe('WorkspaceConflictSavedObjectsClientWrapper', () => {
});

it(`Should use options.workspaces when get throws error`, async () => {
mockedClient.get.mockRejectedValueOnce(
getSavedObject({
id: 'dashboard:foo',
workspaces: ['foo'],
error: {
statusCode: 404,
error: 'Not found',
message: 'Not found',
},
})
);
mockedClient.get.mockRejectedValueOnce({
output: {
statusCode: 404,
},
});

await wrapperClient.create(
'dashboard',
Expand Down

0 comments on commit b38f8a0

Please sign in to comment.