Skip to content
This repository was archived by the owner on May 26, 2020. It is now read-only.

Commit 7761223

Browse files
authored
Fix application name in app-info service (#72)
1 parent 22b2f09 commit 7761223

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/add-layout/files/src/app/shared/services/app-info.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ export class AppInfoService {
55
constructor() {}
66

77
public get title() {
8-
return 'DevExtreme App';
8+
return '<%= title %>';
99
}
1010
}

src/add-layout/index_spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,9 @@ describe('layout', () => {
194194
expect(newAppContent).toMatch(/templateUrl: '.\/app1.component.html',/);
195195
expect(newAppContent).toMatch(/styleUrls: \['.\/app1.component.scss'\]/);
196196
expect(newAppContent).toContain(`import { AuthService, ScreenService, AppInfoService } from './shared/services';`);
197+
198+
const appInfo = tree.readContent('/testApp/src/app/shared/services/app-info.service.ts');
199+
expect(appInfo).toContain(`return 'TestApp';`);
197200
});
198201

199202
it('should add routing to layout', () => {

0 commit comments

Comments
 (0)