Skip to content

Commit 1829fd7

Browse files
committed
(cover ternary inside Error message)
1 parent 521074f commit 1829fd7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

__tests__/index.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ describe('js-to-styles-vars-loader', () => {
105105
}).not.toThrow();
106106
for (const notOkThing of areNotOk) {
107107
expect(() => {
108-
operator.validateVariablesValue(notOkThing, "", "");
108+
operator.validateVariablesValue(notOkThing, "", "nofile.js");
109+
operator.validateVariablesValue(notOkThing, "some.thing", "nofile.js");
109110
console.error(`Should have thrown on ${typeof notOkThing} '${JSON.stringify(notOkThing)}'`);
110111
},).toThrow();
111112

0 commit comments

Comments
 (0)