Skip to content

Commit

Permalink
feat: address comments
Browse files Browse the repository at this point in the history
Signed-off-by: SuZhou-Joe <[email protected]>
  • Loading branch information
SuZhou-Joe committed Apr 2, 2024
1 parent 1b32316 commit b7a6cb7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@ export async function createOrUpgradeSavedConfig(

try {
// create the new SavedConfig
await savedObjectsClient.create('config', attributes, {
id: version,
});
await savedObjectsClient.create('config', attributes, { id: version });
} catch (error) {
if (handleWriteErrors) {
if (SavedObjectsErrorHelpers.isConflictError(error)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe('WorkspaceIdConsumerWrapper', () => {
);
});

it(`Should use options.workspaces when there is no workspaces inside options`, async () => {
it(`Should not use options.workspaces when there is no workspaces inside options`, async () => {
await wrapperClient.create(
'dashboard',
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export class WorkspaceIdConsumerWrapper {
bulkUpdate: wrapperOptions.client.bulkUpdate,
addToNamespaces: wrapperOptions.client.addToNamespaces,
deleteFromNamespaces: wrapperOptions.client.deleteFromNamespaces,
deleteByWorkspace: wrapperOptions.client.deleteByWorkspace,
};
};

Expand Down

0 comments on commit b7a6cb7

Please sign in to comment.