Skip to content

Commit 52a29ba

Browse files
authored
test: use toThrow instead of toThrowError (#292)
1 parent a873c82 commit 52a29ba

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"ecmaVersion": 11
66
},
77
"rules": {
8-
"no-underscore-dangle": 0
8+
"no-underscore-dangle": 0,
9+
"jest/no-alias-methods": 1
910
},
1011
"env": {
1112
"jest/globals": true

src/utils/__tests__/normalizeConfig.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ it('normalizes maxWarnings', () => {
118118
maxWarnings: 10,
119119
});
120120

121-
expect(() => normalizeCLIOptions({ maxWarnings: 'not-an-int' })).toThrowError(
121+
expect(() => normalizeCLIOptions({ maxWarnings: 'not-an-int' })).toThrow(
122122
`'not-an-int' cannot be converted to a number`,
123123
);
124124
});

0 commit comments

Comments
 (0)