Skip to content

Commit 71f251b

Browse files
committed
Fix the test
1 parent 61aeb00 commit 71f251b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/rules/__tests__/no-deprecated-colors.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const testDeprecations = {
99
'autocomplete.shadow': 'shadow.medium'
1010
}
1111

12-
jest.mock('@primer/primitives/dist/deprecations/colors', () => testDeprecations)
12+
jest.mock('@primer/primitives/dist/removed/colors', () => testDeprecations)
1313

1414
const ruleTester = new RuleTester({
1515
parserOptions: {

src/rules/no-deprecated-colors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const deprecations = require('@primer/primitives/dist/removed/colors')
22
const traverse = require('eslint-traverse')
3-
const {isImportedFrom} = require('../utils/isImportedFrom')
4-
const {isPrimerComponent} = require('../utils/isPrimerComponent')
3+
const {isImportedFrom} = require('../utils/is-imported-from')
4+
const {isPrimerComponent} = require('../utils/is-primer-component')
55

66
const styledSystemColorProps = ['color', 'bg', 'backgroundColor', 'borderColor', 'textShadow', 'boxShadow']
77

0 commit comments

Comments
 (0)