Skip to content

Commit 3cbc763

Browse files
Alan Agiushansl
Alan Agius
authored andcommitted
test: fix test for directive prefix
1 parent 7f16cc7 commit 3cbc763

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/legacy-cli/e2e/tests/generate/directive/directive-prefix.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,16 @@ export default function() {
1616
.then(() => ng('generate', 'directive', 'test2-directive'))
1717
.then(() => expectFileToMatch(join(directiveDir, 'test2-directive.directive.ts'),
1818
/selector: '\[preW/))
19+
.then(() => ng('generate', 'application', 'app-two', '--skip-install'))
1920
.then(() => updateJsonFile('angular.json', configJson => {
2021
configJson.projects['test-project'].schematics = {
2122
'@schematics/angular:directive': { prefix: 'preP' }
2223
};
2324
}))
24-
.then(() => process.chdir('e2e/src'))
25+
.then(() => process.chdir('projects/app-two'))
2526
.then(() => ng('generate', 'directive', '--skip-import', 'test3-directive'))
2627
.then(() => process.chdir('../..'))
27-
.then(() => expectFileToMatch(join('e2e', 'src', 'test3-directive.directive.ts'),
28+
.then(() => expectFileToMatch(join('projects', 'app-two', 'test3-directive.directive.ts'),
2829
/selector: '\[preW/))
2930
.then(() => process.chdir('src/app'))
3031
.then(() => ng('generate', 'directive', 'test-directive'))

0 commit comments

Comments
 (0)