We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4981268 commit a66cd15Copy full SHA for a66cd15
packages/functions/src/__tests__/schema.test.ts
@@ -325,12 +325,17 @@ describe('Core Functions / Schema', () => {
325
});
326
327
it('and the unicodeRegExp option is true triggers a SyntaxError', async () => {
328
- expect(await runSchema('\\', { schema, unicodeRegExp: true })).toEqual([
+ const expected = [
329
{
330
message: expect.stringContaining('Invalid regular expression: /' + schema.pattern + '/'),
331
path: [],
332
},
333
- ]);
+ {
334
+ message: expect.stringContaining('Invalid escape'),
335
+ path: [],
336
+ },
337
+ ];
338
+ expect(await runSchema('\\', { schema, unicodeRegExp: true })).toEqual(expect.arrayContaining(expected));
339
340
341
0 commit comments