Skip to content

Commit 4e18a98

Browse files
author
Sean Newell
committed
Switch failing test to match a regex that will work for both version 3 and 4 error messages
1 parent 4b76769 commit 4e18a98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/specs/model.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,7 @@ describe('model', () => {
10071007
throw new Error('Update should throw an error if no where clause is given.');
10081008
}, (err) => {
10091009
expect(err).to.be.an.instanceof(Error);
1010-
expect(err.message).to.equal('Missing where attribute in the options parameter passed to update.');
1010+
expect(err.message).to.match(/^Missing where attribute in the options parameter/);
10111011
});
10121012
});
10131013

0 commit comments

Comments
 (0)