We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab258e8 commit 54f8ff5Copy full SHA for 54f8ff5
@commitlint/config-lerna-scopes/test.js
@@ -21,7 +21,12 @@ test('scope-enum is function', t => {
21
22
test('scope-enum does not throw for missing context', async t => {
23
const {'scope-enum': fn} = config.rules;
24
- await t.notThrows(async () => fn());
+ try {
25
+ await fn();
26
+ t.pass();
27
+ } catch (err) {
28
+ t.fail();
29
+ }
30
});
31
32
test('scope-enum has expected severity', async t => {
@@ -55,7 +60,12 @@ test.failing(
55
60
async t => {
56
61
57
62
const cwd = await npm.bootstrap('fixtures/version-mismatch');
58
- await t.throws(async () => fn({cwd}));
63
64
+ await fn({cwd});
65
66
67
68
59
69
}
70
);
71
0 commit comments