From d2fab723583175448681f924e822a4c1256f8596 Mon Sep 17 00:00:00 2001 From: Minh Nguyen Date: Tue, 31 Mar 2020 00:38:03 +0100 Subject: [PATCH] [core] Add missing test case for restricted-path-imports This condition wasn't properly tested: https://github.com/mui-org/material-ui/blob/396e4ef3cf3e13bafeac4d2019dd0771fe9f8ebf/packages/eslint-plugin-material-ui/src/rules/restricted-path-imports.js#L10-L11 --- .../src/rules/restricted-path-imports.test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/eslint-plugin-material-ui/src/rules/restricted-path-imports.test.js b/packages/eslint-plugin-material-ui/src/rules/restricted-path-imports.test.js index 916baf4c323d82..84920185c61bb9 100644 --- a/packages/eslint-plugin-material-ui/src/rules/restricted-path-imports.test.js +++ b/packages/eslint-plugin-material-ui/src/rules/restricted-path-imports.test.js @@ -12,6 +12,7 @@ ruleTester.run('restricted-path-imports', rule, { "import { blue } from '@material-ui/core/colors'", "import * as colors from '@material-ui/core/colors'", "import * as colors from '@another/core/styles/withStyles'", + "import describeConformance from '@material-ui/core/test-utils/describeConformance'", "import describeConformance from '@another/core/test-utils/describeConformance'", ], invalid: [