export function run() { describe("Widget Inital data test", () => { let widget = new R.TestView.WidgetWithInitData() it("Inital Data test", () => { if (widget.VM.title !== "title") { throw new Error("VM.title not match") } if (widget.childWidget.VM.name !== "child") { throw new Error("VM.title not match") } if (widget.list.length !== 2) { throw new Error("List length not match") } if (widget.list[1].VM.name !== "n2") { throw new Error("List item not match") } }) }) }