Skip to content

Commit 5663a57

Browse files
delastevefilipesilva
authored andcommitted
test: fix failing generate duplicate component e2e test
1 parent 3ad2856 commit 5663a57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/e2e/tests/generate/component/component-duplicate.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { oneLine } from 'common-tags';
55
export default function () {
66
return ng('generate', 'component', 'test-component')
77
.then((output) => {
8-
if (!output.match(/update src[\\|\/]app[\\|\/]app.module.ts/)) {
8+
if (!output.stdout.match(/update src[\\|\/]app[\\|\/]app.module.ts/)) {
99
throw new Error(oneLine`
1010
Expected to match
1111
"update src${path.sep}app${path.sep}app.module.ts"
@@ -14,7 +14,7 @@ export default function () {
1414
})
1515
.then(() => ng('generate', 'component', 'test-component'))
1616
.then((output) => {
17-
if (!output.match(/identical src[\\|\/]app[\\|\/]app.module.ts/)) {
17+
if (!output.stdout.match(/identical src[\\|\/]app[\\|\/]app.module.ts/)) {
1818
throw new Error(oneLine`
1919
Expected to match
2020
"identical src${path.sep}app${path.sep}app.module.ts"

0 commit comments

Comments
 (0)