Skip to content

Commit

Permalink
Fix unit tests on Nodejs prior 16
Browse files Browse the repository at this point in the history
  • Loading branch information
lahmatiy committed Jan 30, 2023
1 parent a4f76aa commit 031f6ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/utils/tester.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// Reworked stylelint-rule-tester

import assert, { deepStrictEqual } from 'assert';
import { isRegExp } from 'util/types';
import postcss from 'postcss';

const isRegExp = value => toString.call(value) === '[object RegExp]';

/**
* Create a ruleTester for a specified rule.
*
Expand Down

0 comments on commit 031f6ae

Please sign in to comment.