Skip to content

Commit c743206

Browse files
committed
update
1 parent 56c3456 commit c743206

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/lib/styles/test-utils.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const Linter = getLinter();
1313
const ROOT = path.join(__dirname, "./fixtures/index");
1414

1515
const config = {
16-
files: ["*", "*.vue", "**/*.vue"],
16+
files: ["*", "*.vue", "**/*.vue", "**"],
1717
languageOptions: {
1818
parser: vueParser,
1919
ecmaVersion: 2019,
@@ -64,8 +64,11 @@ function executeLint(
6464
if (err) {
6565
throw err;
6666
}
67-
if (!style || !context) {
68-
throw new Error("invalid state");
67+
if (!style) {
68+
throw new Error("invalid state: style is null");
69+
}
70+
if (!context) {
71+
throw new Error("invalid state: context is null");
6972
}
7073
return { style, context };
7174
}

0 commit comments

Comments
 (0)