Skip to content

Commit 3c9305b

Browse files
alan-agius4vikerman
authored andcommitted
test: fix update-git-clean-subdirectory test
1 parent 3fc4c91 commit 3c9305b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/legacy-cli/e2e/tests/misc/update-git-clean-subdirectory.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import { createDir, writeFile } from '../../utils/fs';
2-
import { expectToFail } from '../../utils/utils';
31
import { getGlobalVariable } from '../../utils/env';
2+
import { createDir, writeFile } from '../../utils/fs';
43
import { ng, silentGit } from '../../utils/process';
5-
import { prepareProjectForE2e } from '../../utils/project'
4+
import { prepareProjectForE2e } from '../../utils/project';
65

76
export default async function() {
87
process.chdir(getGlobalVariable('tmp-root'));
@@ -19,8 +18,8 @@ export default async function() {
1918
await writeFile('../added.ts', 'console.log(\'created\');\n');
2019
await silentGit('add', '../added.ts');
2120

22-
const { message } = await expectToFail(() => ng('update', '--all'));
23-
if (message && message.includes('Repository is not clean.')) {
21+
const { stderr } = await ng('update', '--all', '--force');
22+
if (stderr && stderr.includes('Repository is not clean.')) {
2423
throw new Error('Expected clean repository');
2524
}
2625
}

0 commit comments

Comments
 (0)