update ut.

Signed-off-by: lihong <lihong67@huawei.com>
Change-Id: I58cb27b9222f35f4805e99a6f8ca3a7403ab7af8
This commit is contained in:
lihong
2022-06-09 12:04:13 +08:00
parent 02571a4caa
commit 027761ab9d
4 changed files with 8 additions and 10 deletions
@@ -94,9 +94,7 @@ struct CustomContainerUser {
}
`
exports.expectResult =
`"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const TestComponent_1 = require("./test/pages/TestComponent");
`import { CustomContainerExport } from './test/pages/TestComponent';
class CustomContainer extends View {
constructor(compilerAssignedUniqueChildId, parent, params) {
super(compilerAssignedUniqueChildId, parent);
@@ -193,7 +191,7 @@ class CustomContainerUser extends View {
Column.create();
let earlierCreatedChild_2 = this.findChildById("2");
if (earlierCreatedChild_2 == undefined) {
View.create(new TestComponent_1.CustomContainerExport("2", this, {
View.create(new CustomContainerExport("2", this, {
header: this.text,
closer: () => {
Column.create();
@@ -53,8 +53,8 @@ let envLang = AppStorage.Prop('languageCode');
class MyComponent extends View {
constructor(compilerAssignedUniqueChildId, parent, params) {
super(compilerAssignedUniqueChildId, parent);
this.__varA = AppStorage.GetOrCreate().setAndLink("varA", 2, this);
this.__lang = AppStorage.GetOrCreate().setAndProp("languageCode", 'en', this);
this.__varA = AppStorage.GetOrCreate().setAndLink('varA', 2, this);
this.__lang = AppStorage.GetOrCreate().setAndProp('languageCode', 'en', this);
this.label = 'count';
this.updateWithValueParams(params);
}
@@ -53,8 +53,8 @@ let envLang = AppStorage.Prop('languageCode');
class MyComponent extends View {
constructor(compilerAssignedUniqueChildId, parent, params) {
super(compilerAssignedUniqueChildId, parent);
this.__varA = AppStorage.GetOrCreate().setAndLink("varA", 2, this);
this.__lang = AppStorage.GetOrCreate().setAndProp("languageCode", 'en', this);
this.__varA = AppStorage.GetOrCreate().setAndLink('varA', 2, this);
this.__lang = AppStorage.GetOrCreate().setAndProp('languageCode', 'en', this);
this.label = 'count';
this.updateWithValueParams(params);
}
@@ -53,8 +53,8 @@ let envLang = AppStorage.Prop('languageCode');
class MyComponent extends View {
constructor(compilerAssignedUniqueChildId, parent, params) {
super(compilerAssignedUniqueChildId, parent);
this.__varA = AppStorage.GetOrCreate().setAndLink("varA", 2, this);
this.__lang = AppStorage.GetOrCreate().setAndProp("languageCode", 'en', this);
this.__varA = AppStorage.GetOrCreate().setAndLink('varA', 2, this);
this.__lang = AppStorage.GetOrCreate().setAndProp('languageCode', 'en', this);
this.label = 'count';
this.updateWithValueParams(params);
}