mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
test(angular): add support for multi-version testing (#25665)
This commit is contained in:
2
angular/test/base/src/app/version-test/index.ts
Normal file
2
angular/test/base/src/app/version-test/index.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from './version-test.component';
|
||||
export * from './version-test.module';
|
||||
@@ -0,0 +1,16 @@
|
||||
import { NgModule } from "@angular/core";
|
||||
import { RouterModule } from "@angular/router";
|
||||
import { VersionTestComponent } from ".";
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
RouterModule.forChild([
|
||||
{
|
||||
path: '',
|
||||
component: VersionTestComponent
|
||||
}
|
||||
])
|
||||
],
|
||||
exports: [RouterModule]
|
||||
})
|
||||
export class VersionTestRoutingModule { }
|
||||
@@ -0,0 +1 @@
|
||||
Version-specific tests
|
||||
@@ -0,0 +1,8 @@
|
||||
import { Component } from "@angular/core";
|
||||
|
||||
@Component({
|
||||
selector: 'app-version-test',
|
||||
templateUrl: 'version-test.component.html'
|
||||
})
|
||||
export class VersionTestComponent {
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
import { CommonModule } from "@angular/common";
|
||||
import { NgModule } from "@angular/core";
|
||||
import { IonicModule } from "@ionic/angular";
|
||||
import { VersionTestRoutingModule } from "./version-test-routing.module";
|
||||
import { VersionTestComponent } from "./version-test.component";
|
||||
|
||||
@NgModule({
|
||||
imports: [CommonModule, IonicModule, VersionTestRoutingModule],
|
||||
declarations: [VersionTestComponent],
|
||||
exports: [VersionTestComponent]
|
||||
})
|
||||
export class VersionTestModule { }
|
||||
Reference in New Issue
Block a user