From 884a565f51ebb494542e2a99ec8070c890cd00ec Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Wed, 3 Nov 2021 09:31:05 +0100 Subject: [PATCH] Update tests for changes in `nth-check` --- test/matches.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/matches.js b/test/matches.js index f9a7864..3793b53 100644 --- a/test/matches.js +++ b/test/matches.js @@ -125,7 +125,7 @@ test('select.matches()', (t) => { () => { matches(':' + pseudo + '()', u('root', [])) }, - new RegExp('Error: Cannot use `:' + pseudo + '` without parent'), + /n-th rule couldn't be parsed/, 'should throw on `' + pseudo + '()`' ) }