Skip to content

Commit 5849135

Browse files
committed
Move other status checks at the end of their block
1 parent d45e9ce commit 5849135

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/parallel/test-package-map-cli.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ describe('--experimental-package-map CLI behavior', () => {
2525
},
2626
});
2727

28-
assert.strictEqual(status, 0, stderr);
2928
assert.match(stdout, /dep-a-value/);
29+
assert.strictEqual(status, 0, stderr);
3030
});
3131

3232
it('emits experimental warning on first use', () => {
@@ -55,8 +55,8 @@ describe('--experimental-package-map CLI behavior', () => {
5555
});
5656

5757
// Relative path ../package-map.json resolved from cwd (root/)
58-
assert.strictEqual(status, 0, stderr);
5958
assert.match(stdout, /dep-a-value/);
59+
assert.strictEqual(status, 0, stderr);
6060
});
6161

6262
it('accepts absolute path', () => {
@@ -95,9 +95,9 @@ describe('--experimental-package-map CLI behavior', () => {
9595
encoding: 'utf8',
9696
});
9797

98-
assert.strictEqual(status, 0, stderr);
9998
assert.match(stdout, /dep-a-value/);
10099
// Warning should be suppressed
101100
assert.doesNotMatch(stderr, /ExperimentalWarning/);
101+
assert.strictEqual(status, 0, stderr);
102102
});
103103
});

0 commit comments

Comments
 (0)