Skip to content

Commit 2f08f7b

Browse files
authored
Fix a test. (#4895)
1 parent 01cbfb9 commit 2f08f7b

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"comment": "",
5+
"type": "none",
6+
"packageName": "@microsoft/rush"
7+
}
8+
],
9+
"packageName": "@microsoft/rush",
10+
"email": "[email protected]"
11+
}

libraries/rush-lib/src/cli/test/Cli.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ describe('CLI', () => {
1313
const workingDir: string = '/';
1414
const startPath: string = path.resolve(__dirname, '../../../lib-commonjs/start.js');
1515

16-
await expect(async () => {
17-
await Utilities.executeCommandAsync({
16+
await expect(
17+
Utilities.executeCommandAsync({
1818
command: 'node',
1919
args: [startPath],
2020
workingDirectory: workingDir,
2121
suppressOutput: true
22-
});
23-
}).not.toThrow();
22+
})
23+
).resolves.not.toThrow();
2424
});
2525

2626
it('rushx should pass args to scripts', async () => {

0 commit comments

Comments
 (0)