Skip to content

Commit 4a25d7c

Browse files
hanslalexeagle
authored andcommitted
test: get-set deprecation should check stderr now
1 parent 189563d commit 4a25d7c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/legacy-cli/e2e/tests/commands/config/get-set-deprecation.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ export default function() {
55
const depRegEx = /get\/set have been deprecated in favor of the config command\./;
66
return Promise.resolve()
77
.then(() => ng('get'))
8-
.then(({ stdout }) => {
9-
if (!stdout.match(depRegEx)) {
8+
.then(({ stderr }) => {
9+
if (!stderr.match(depRegEx)) {
1010
throw new Error(`Expected deprecation warning.`);
1111
}
1212
})
1313
.then(() => ng('set'))
14-
.then(({ stdout }) => {
15-
if (!stdout.match(depRegEx)) {
14+
.then(({ stderr }) => {
15+
if (!stderr.match(depRegEx)) {
1616
throw new Error(`Expected deprecation warning.`);
1717
}
1818
});

0 commit comments

Comments
 (0)