Skip to content
This repository was archived by the owner on Feb 9, 2023. It is now read-only.

Commit 916e42e

Browse files
committed
enable jest/expect-expect, jest/valid-expect
1 parent 9b6de78 commit 916e42e

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@
5454
],
5555
"rules": {
5656
"prefer-rest-params": "off",
57-
"prefer-spread": "off",
58-
"jest/expect-expect": "off",
59-
"jest/valid-expect": "off"
57+
"prefer-spread": "off"
6058
}
6159
},
6260
"remarkConfig": {

test/literals.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,13 @@ describe('template literals', () => {
193193
file = require.resolve(file);
194194
const code = fs.readFileSync(file);
195195

196-
syntax({
197-
css: 'safe-parser',
198-
}).parse(code, {
199-
from: 'styled-safe-parse.js',
200-
});
196+
expect(() =>
197+
syntax({
198+
css: 'safe-parser',
199+
}).parse(code, {
200+
from: 'styled-safe-parse.js',
201+
}),
202+
).not.toThrow();
201203
});
202204
});
203205
});

0 commit comments

Comments
 (0)