Skip to content

Commit

Permalink
fix: unit test error
Browse files Browse the repository at this point in the history
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
  • Loading branch information
SuZhou-Joe committed Apr 8, 2024
1 parent 742ec22 commit ab0486e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/plugins/workspace/server/plugin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ describe('Workspace server plugin', () => {
expect(toolKitMock.rewriteUrl).toBeCalledWith('http://localhost/app');
expect(toolKitMock.next).toBeCalledTimes(0);
expect(getWorkspaceState(requestWithWorkspaceInUrl)).toEqual({
id: 'foo',
requestWorkspaceId: 'foo',
});

const requestWithoutWorkspaceInUrl = httpServerMock.createOpenSearchDashboardsRequest({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('WorkspaceIdConsumerWrapper', () => {
const mockedClient = savedObjectsClientMock.create();
const workspaceEnabledMockRequest = httpServerMock.createOpenSearchDashboardsRequest();
updateWorkspaceState(workspaceEnabledMockRequest, {
id: 'foo',
requestWorkspaceId: 'foo',
});
const wrapperClient = wrapperInstance.wrapperFactory({
client: mockedClient,
Expand Down

0 comments on commit ab0486e

Please sign in to comment.