|
1 |
| -import * as fs from 'fs'; |
2 | 1 | import { join } from 'path';
|
3 | 2 |
|
4 | 3 | import * as util from './util';
|
@@ -55,7 +54,7 @@ describe('util', () => {
|
55 | 54 | const knownContent = `
|
56 | 55 | import { Component } from '@angular/core';
|
57 | 56 |
|
58 |
| -import { DeepLink, NavController } from 'ionic-angular'; |
| 57 | +import { IonicPage, NavController } from 'ionic-angular'; |
59 | 58 |
|
60 | 59 | @IonicPage({
|
61 | 60 | name: 'someName',
|
@@ -114,7 +113,7 @@ export class HomePage {
|
114 | 113 | const knownContent = `
|
115 | 114 | import { Component } from '@angular/core';
|
116 | 115 |
|
117 |
| -import { DeepLink, NavController } from 'ionic-angular'; |
| 116 | +import { IonicPage, NavController } from 'ionic-angular'; |
118 | 117 |
|
119 | 118 | @IonicPage({
|
120 | 119 | segment: 'someSegmentBro',
|
@@ -172,7 +171,7 @@ export class HomePage {
|
172 | 171 | const knownContent = `
|
173 | 172 | import { Component } from '@angular/core';
|
174 | 173 |
|
175 |
| -import { DeepLink, NavController } from 'ionic-angular'; |
| 174 | +import { IonicPage, NavController } from 'ionic-angular'; |
176 | 175 |
|
177 | 176 | @IonicPage({
|
178 | 177 | defaultHistory: ['page-one', 'page-two'],
|
@@ -229,7 +228,7 @@ export class HomePage {
|
229 | 228 | const knownContent = `
|
230 | 229 | import { Component } from '@angular/core';
|
231 | 230 |
|
232 |
| -import { DeepLink, NavController } from 'ionic-angular'; |
| 231 | +import { IonicPage, NavController } from 'ionic-angular'; |
233 | 232 |
|
234 | 233 | @IonicPage({
|
235 | 234 | priority: 'high'
|
@@ -285,7 +284,7 @@ export class HomePage {
|
285 | 284 | const knownContent = `
|
286 | 285 | import { Component } from '@angular/core';
|
287 | 286 |
|
288 |
| -import { DeepLink, NavController } from 'ionic-angular'; |
| 287 | +import { IonicPage, NavController } from 'ionic-angular'; |
289 | 288 |
|
290 | 289 | @IonicPage({
|
291 | 290 | })
|
@@ -340,7 +339,7 @@ export class HomePage {
|
340 | 339 | const knownContent = `
|
341 | 340 | import { Component } from '@angular/core';
|
342 | 341 |
|
343 |
| -import { DeepLink, NavController } from 'ionic-angular'; |
| 342 | +import { IonicPage, NavController } from 'ionic-angular'; |
344 | 343 |
|
345 | 344 | @IonicPage()
|
346 | 345 | @Component({
|
@@ -395,7 +394,7 @@ export class HomePage {
|
395 | 394 | const knownContent = `
|
396 | 395 | import { Component } from '@angular/core';
|
397 | 396 |
|
398 |
| -import { DeepLink, NavController } from 'ionic-angular'; |
| 397 | +import { IonicPage, NavController } from 'ionic-angular'; |
399 | 398 |
|
400 | 399 | @IonicPage({
|
401 | 400 | })
|
@@ -452,7 +451,7 @@ export class HomePage {
|
452 | 451 | const knownContent = `
|
453 | 452 | import { Component } from '@angular/core';
|
454 | 453 |
|
455 |
| -import { DeepLink, NavController } from 'ionic-angular'; |
| 454 | +import { IonicPage, NavController } from 'ionic-angular'; |
456 | 455 |
|
457 | 456 | @Component({
|
458 | 457 | selector: 'page-home',
|
@@ -648,7 +647,7 @@ export class HomePageModule {}
|
648 | 647 |
|
649 | 648 | const pageOneContent = `
|
650 | 649 | import { Component } from '@angular/core';
|
651 |
| -import { DeepLink, NavController } from 'ionic-angular'; |
| 650 | +import { IonicPage, NavController } from 'ionic-angular'; |
652 | 651 |
|
653 | 652 |
|
654 | 653 | @Component({
|
@@ -756,7 +755,7 @@ export class PageTwoModule {
|
756 | 755 |
|
757 | 756 | const pageSettingsContent = `
|
758 | 757 | import { Component } from '@angular/core';
|
759 |
| -import { DeepLink, NavController } from 'ionic-angular'; |
| 758 | +import { IonicPage, NavController } from 'ionic-angular'; |
760 | 759 |
|
761 | 760 | /*
|
762 | 761 | Generated class for the PageTwo page.
|
@@ -832,7 +831,7 @@ export class PageThreeModule {
|
832 | 831 |
|
833 | 832 | const pageOneContent = `
|
834 | 833 | import { Component } from '@angular/core';
|
835 |
| -import { DeepLink, NavController } from 'ionic-angular'; |
| 834 | +import { IonicPage, NavController } from 'ionic-angular'; |
836 | 835 |
|
837 | 836 |
|
838 | 837 | @IonicPage({
|
@@ -943,7 +942,7 @@ export class PageTwoModule {
|
943 | 942 |
|
944 | 943 | const pageSettingsContent = `
|
945 | 944 | import { Component } from '@angular/core';
|
946 |
| -import { DeepLink, NavController } from 'ionic-angular'; |
| 945 | +import { IonicPage, NavController } from 'ionic-angular'; |
947 | 946 |
|
948 | 947 | @IonicPage({
|
949 | 948 | segment: 'someSegmentBro',
|
@@ -1023,7 +1022,7 @@ export class PageThreeModule {
|
1023 | 1022 |
|
1024 | 1023 | const pageOneContent = `
|
1025 | 1024 | import { Component } from '@angular/core';
|
1026 |
| -import { DeepLink, NavController } from 'ionic-angular'; |
| 1025 | +import { IonicPage, NavController } from 'ionic-angular'; |
1027 | 1026 |
|
1028 | 1027 |
|
1029 | 1028 | @IonicPage({
|
@@ -1136,7 +1135,7 @@ export class PageTwoModule {
|
1136 | 1135 |
|
1137 | 1136 | const pageSettingsContent = `
|
1138 | 1137 | import { Component } from '@angular/core';
|
1139 |
| -import { DeepLink, NavController } from 'ionic-angular'; |
| 1138 | +import { IonicPage, NavController } from 'ionic-angular'; |
1140 | 1139 |
|
1141 | 1140 | @IonicPage({
|
1142 | 1141 | segment: 'someSegmentBro',
|
@@ -1241,7 +1240,7 @@ export class PageThreeModule {
|
1241 | 1240 | it('should throw when it cant find an NgModule as a peer to the page with a deep link config', () => {
|
1242 | 1241 | const pageOneContent = `
|
1243 | 1242 | import { Component } from '@angular/core';
|
1244 |
| -import { DeepLink, NavController } from 'ionic-angular'; |
| 1243 | +import { IonicPage, NavController } from 'ionic-angular'; |
1245 | 1244 |
|
1246 | 1245 |
|
1247 | 1246 | @IonicPage({
|
@@ -1354,7 +1353,7 @@ export class PageTwoModule {
|
1354 | 1353 |
|
1355 | 1354 | const pageSettingsContent = `
|
1356 | 1355 | import { Component } from '@angular/core';
|
1357 |
| -import { DeepLink, NavController } from 'ionic-angular'; |
| 1356 | +import { IonicPage, NavController } from 'ionic-angular'; |
1358 | 1357 |
|
1359 | 1358 | @IonicPage({
|
1360 | 1359 | segment: 'someSegmentBro',
|
|
0 commit comments