add nested import ut

Signed-off-by: yfwang6 <wangyongfei6@huawei.com>
Change-Id: I1d208066fbebca64315bd677e1d1ecd9a543848f
This commit is contained in:
yfwang6
2022-06-09 18:02:28 +08:00
parent 044fe39d1d
commit 155c07b773
+3 -5
View File
@@ -44,9 +44,7 @@ struct ImportTest {
`
exports.expectResult =
`"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const ImportNestAll_1 = require("./test/pages/ImportNestAll");
`import { Base, BaseTest } from './test/pages/ImportNestAll';
class ImportTest extends View {
constructor(compilerAssignedUniqueChildId, parent, params) {
super(compilerAssignedUniqueChildId, parent);
@@ -127,7 +125,7 @@ class ImportTest extends View {
Column.create();
let earlierCreatedChild_2 = this.findChildById("2");
if (earlierCreatedChild_2 == undefined) {
View.create(new ImportNestAll_1.Base("2", this, {
View.create(new Base("2", this, {
testStr: this.__testState1,
testNum: this.__testState2,
testObj: this.__testState3
@@ -139,7 +137,7 @@ class ImportTest extends View {
}
let earlierCreatedChild_3 = this.findChildById("3");
if (earlierCreatedChild_3 == undefined) {
View.create(new ImportNestAll_1.BaseTest("3", this, {
View.create(new BaseTest("3", this, {
testStr: this.__testState4,
testNum: this.__testState5,
testObj: this.__testState6