Skip to content

Commit

Permalink
feat: optimize test
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 17, 2024
1 parent 544083e commit 093de9e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ describe('WorkspaceIdConsumerWrapper', () => {
);
});

it(`Should skip the objects when trying to create unallowed type within a workspace`, async () => {
it(`Should return error when trying to create unallowed type within a workspace`, async () => {
mockedClient.bulkCreate.mockResolvedValueOnce({ saved_objects: [] });
const result = await wrapperClient.bulkCreate([
getSavedObject({
Expand Down Expand Up @@ -182,6 +182,7 @@ describe('WorkspaceIdConsumerWrapper', () => {
it(`workspaces parameters should be removed when finding data sources`, async () => {
await wrapperClient.find({
type: DATA_SOURCE_SAVED_OBJECT_TYPE,
workspaces: ['foo'],
});
expect(mockedClient.find).toBeCalledWith({
type: DATA_SOURCE_SAVED_OBJECT_TYPE,
Expand Down

0 comments on commit 093de9e

Please sign in to comment.