From 38351a52ccb7416d9008c942e2b70fadeddf751a Mon Sep 17 00:00:00 2001 From: Mestery Date: Sun, 30 Jan 2022 01:44:58 +0100 Subject: [PATCH] fixup --- test/.eslintrc.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/.eslintrc.yaml b/test/.eslintrc.yaml index aa185ab374a81f..454e3e9bb9932b 100644 --- a/test/.eslintrc.yaml +++ b/test/.eslintrc.yaml @@ -16,9 +16,9 @@ rules: - selector: CallExpression:matches([callee.name='deepStrictEqual'], [callee.property.name='deepStrictEqual']):matches([arguments.1.type='Literal']:not([arguments.1.regex]), [arguments.1.type='Identifier'][arguments.1.name='undefined']) message: Use strictEqual instead of deepStrictEqual for literals or undefined. - selector: CallExpression:matches([callee.name='notDeepStrictEqual'], [callee.property.name='notDeepStrictEqual']):matches([arguments.1.type='Literal']:not([arguments.1.regex]), [arguments.1.type='Identifier'][arguments.1.name='undefined']) - message: Use notStrictEqual instead of notDeepStrictEqual for literals or undefined." + message: Use notStrictEqual instead of notDeepStrictEqual for literals or undefined. - selector: CallExpression:matches([callee.name='deepStrictEqual'], [callee.property.name='deepStrictEqual'])[arguments.2.type='Literal'] - message: Do not use a literal for the third argument of assert.deepStrictEqual()" + message: Do not use a literal for the third argument of assert.deepStrictEqual() - selector: CallExpression:matches([callee.name='doesNotThrow'], [callee.property.name='doesNotThrow']) message: Do not use `assert.doesNotThrow()`. Write the code without the wrapper and add a comment instead. - selector: CallExpression:matches([callee.name='doesNotReject'], [callee.property.name='doesNotReject'])