Skip to content

Commit

Permalink
test: fix test for directive prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Agius authored and hansl committed Mar 4, 2019
1 parent 7f16cc7 commit 3cbc763
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,16 @@ export default function() {
.then(() => ng('generate', 'directive', 'test2-directive'))
.then(() => expectFileToMatch(join(directiveDir, 'test2-directive.directive.ts'),
/selector: '\[preW/))
.then(() => ng('generate', 'application', 'app-two', '--skip-install'))
.then(() => updateJsonFile('angular.json', configJson => {
configJson.projects['test-project'].schematics = {
'@schematics/angular:directive': { prefix: 'preP' }
};
}))
.then(() => process.chdir('e2e/src'))
.then(() => process.chdir('projects/app-two'))
.then(() => ng('generate', 'directive', '--skip-import', 'test3-directive'))
.then(() => process.chdir('../..'))
.then(() => expectFileToMatch(join('e2e', 'src', 'test3-directive.directive.ts'),
.then(() => expectFileToMatch(join('projects', 'app-two', 'test3-directive.directive.ts'),
/selector: '\[preW/))
.then(() => process.chdir('src/app'))
.then(() => ng('generate', 'directive', 'test-directive'))
Expand Down

0 comments on commit 3cbc763

Please sign in to comment.