Skip to content

Commit 0a3e479

Browse files
committed
test: fix e2e tests that were incorrectly checking stdout
1 parent 548616e commit 0a3e479

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/legacy-cli/e2e/tests/i18n/extract-locale.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default function() {
1212
'<p i18n>Hello world</p>'))
1313
.then(() => ng('xi18n', '--i18n-locale', 'fr'))
1414
.then((output) => {
15-
if (!output.stdout.match(/starting from Angular v4/)) {
15+
if (!output.stderr.match(/starting from Angular v4/)) {
1616
return expectFileToMatch('src/messages.xlf', 'source-language="fr"');
1717
}
1818
});

tests/legacy-cli/e2e/tests/misc/typescript-warning.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default async function () {
1717
.then(() => silentNpm('install', `typescript@${unsupportedTsVersion}`, '--no-save'))
1818
.then(() => ng('build'))
1919
.then((output) => {
20-
if (!output.stdout.match('Using this version can result in undefined behaviour')) {
20+
if (!output.stderr.match('Using this version can result in undefined behaviour')) {
2121
throw new Error('Expected to have typescript version mismatch warning in output.');
2222
}
2323
});

0 commit comments

Comments
 (0)