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 f8123bb commit edcf568Copy full SHA for edcf568
packages/functions/src/__tests__/schema.test.ts
@@ -324,10 +324,10 @@ describe('Core Functions / Schema', () => {
324
]);
325
});
326
327
- it('and the unicodeRegExp option is true', async () => {
+ it('and the unicodeRegExp option is true triggers a SyntaxError', async () => {
328
expect(await runSchema('\\', { schema, unicodeRegExp: true })).toEqual([
329
{
330
- message: 'Invalid regular expression: /^[\\_-]$/u: Invalid escape',
+ message: expect.stringContaining('Invalid regular expression: /' + schema.pattern + '/'),
331
path: [],
332
},
333
0 commit comments