Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thomheymann committed Nov 16, 2020
1 parent a1f7216 commit 4e61dc5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ describe('#create', () => {
const attributes = { attrOne: 'one', attrSecret: 'secret', attrThree: 'three' };

await expect(wrapper.create('known-type', attributes, { id: 'some-id' })).rejects.toThrowError(
'Predefined IDs are not allowed for saved objects with encrypted attributes.'
'Predefined IDs are not allowed for encrypted saved objects of type "known-type".'
);

expect(mockBaseClient.create).not.toHaveBeenCalled();
Expand Down Expand Up @@ -333,7 +333,7 @@ describe('#bulkCreate', () => {
];

await expect(wrapper.bulkCreate(bulkCreateParams)).rejects.toThrowError(
'Predefined IDs are not allowed for saved objects with encrypted attributes.'
'Predefined IDs are not allowed for encrypted saved objects of type "known-type".'
);

expect(mockBaseClient.bulkCreate).not.toHaveBeenCalled();
Expand Down

0 comments on commit 4e61dc5

Please sign in to comment.