Skip to content

Commit e50bd2b

Browse files
committed
fix(@angular/cli): Revert changes to test files
1 parent 81bf910 commit e50bd2b

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

tests/e2e/tests/build/aot/aot-decorators.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {ng} from '../../../utils/process';
2-
import { appendToFile, expectFileToMatch, prependToFile, replaceInFile } from '../../../utils/fs';
2+
import {appendToFile, expectFileToMatch, prependToFile, replaceInFile} from '../../../utils/fs';
33
import {expectToFail} from '../../../utils/utils';
44

55
export default function() {

tests/e2e/tests/generate/component/component-path-case.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ export default function() {
1010
const componentDir = join(rootDir, 'test-component');
1111
const componentTwoDir = join(rootDir, 'test-component-two');
1212

13-
return ng('generate', 'component', join(upperDirs, 'test-component'))
13+
return ng('generate', 'component', `${upperDirs}/test-component`)
1414
.then(() => expectFileToExist(componentDir))
1515
.then(() => expectFileToExist(join(componentDir, 'test-component.component.ts')))
1616
.then(() => expectFileToExist(join(componentDir, 'test-component.component.spec.ts')))
1717
.then(() => expectFileToExist(join(componentDir, 'test-component.component.html')))
1818
.then(() => expectFileToExist(join(componentDir, 'test-component.component.css')))
19-
.then(() => ng('generate', 'component', join(upperDirs, 'Test-Component-Two')))
19+
.then(() => ng('generate', 'component', `${upperDirs}/Test-Component-Two`))
2020
.then(() => expectFileToExist(join(componentTwoDir, 'test-component-two.component.ts')))
2121
.then(() => expectFileToExist(join(componentTwoDir, 'test-component-two.component.spec.ts')))
2222
.then(() => expectFileToExist(join(componentTwoDir, 'test-component-two.component.html')))

tests/e2e/tests/generate/interface.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {expectFileToExist} from '../../utils/fs';
66
export default function() {
77
const interfaceDir = join('src', 'app');
88

9-
return ng('generate', 'interface', 'test-interface', '--type', 'model')
9+
return ng('generate', 'interface', 'test-interface', 'model')
1010
.then(() => expectFileToExist(interfaceDir))
1111
.then(() => expectFileToExist(join(interfaceDir, 'test-interface.model.ts')))
1212

tests/e2e/tests/generate/module/module-import.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ export default function () {
3333
.then(() => expectFileToMatch(join('src', 'app', 'test4', 'test4.module.ts'),
3434
/imports: \[(.|\s)*Test4RoutingModule(.|\s)*\]/m))
3535

36-
.then(() => ng('generate', 'module', 'test5', '--module', join('sub', 'sub')))
36+
.then(() => ng('generate', 'module', 'test5', '--module', 'sub'))
3737
.then(() => expectFileToMatch(subModulePath,
3838
/import { Test5Module } from '..\/test5\/test5.module'/))
3939
.then(() => expectFileToMatch(subModulePath, /imports: \[(.|\s)*Test5Module(.|\s)*\]/m))
4040

41-
.then(() => ng('generate', 'module', 'test6', '--module', join('sub', 'deep', 'deep'))
41+
.then(() => ng('generate', 'module', 'test6', '--module', join('sub', 'deep'))
4242
.then(() => expectFileToMatch(deepSubModulePath,
4343
/import { Test6Module } from '..\/..\/test6\/test6.module'/))
4444
.then(() => expectFileToMatch(deepSubModulePath, /imports: \[(.|\s)*Test6Module(.|\s)*\]/m)));

0 commit comments

Comments
 (0)