mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
test: skip ESLint tests if no Intl
ESLint dependency now requires Intl because it uses regexp unicode character properties. Fixes: https://github.com/nodejs/node/issues/41102 PR-URL: https://github.com/nodejs/node/pull/41105 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Derek Lewis <DerekNonGeneric@inf.is> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
parent
1fa507f098
commit
e60801aaac
19 changed files with 57 additions and 38 deletions
|
@ -1,8 +1,9 @@
|
|||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
if (!common.hasCrypto)
|
||||
common.skip('missing crypto');
|
||||
if ((!common.hasCrypto) || (!common.hasIntl)) {
|
||||
common.skip('ESLint tests require crypto and Intl');
|
||||
}
|
||||
common.skipIfEslintMissing();
|
||||
|
||||
const RuleTester = require('../../tools/node_modules/eslint').RuleTester;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue