mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-16 02:24:10 +08:00
test: get-set deprecation should check stderr now
This commit is contained in:
parent
189563d277
commit
4a25d7c9b4
@ -5,14 +5,14 @@ export default function() {
|
||||
const depRegEx = /get\/set have been deprecated in favor of the config command\./;
|
||||
return Promise.resolve()
|
||||
.then(() => ng('get'))
|
||||
.then(({ stdout }) => {
|
||||
if (!stdout.match(depRegEx)) {
|
||||
.then(({ stderr }) => {
|
||||
if (!stderr.match(depRegEx)) {
|
||||
throw new Error(`Expected deprecation warning.`);
|
||||
}
|
||||
})
|
||||
.then(() => ng('set'))
|
||||
.then(({ stdout }) => {
|
||||
if (!stdout.match(depRegEx)) {
|
||||
.then(({ stderr }) => {
|
||||
if (!stderr.match(depRegEx)) {
|
||||
throw new Error(`Expected deprecation warning.`);
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user