File tree Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Original file line number Diff line number Diff line change 1
1
/* eslint-disable no-new */
2
2
import { createEventObject } from "./events" ;
3
- import { Model } from "./model" ;
3
+ import { Model , createModel } from "./model" ;
4
4
import { ArrayChangeType } from "./observable-array" ;
5
5
import { Property$pendingInit } from "./property" ;
6
6
@@ -614,8 +614,14 @@ describe("Property", () => {
614
614
describe ( "calculated value property" , ( ) => {
615
615
let calcValuePropModel : Model ;
616
616
617
- beforeAll ( ( ) => {
618
- calcValuePropModel = new Model ( {
617
+ beforeAll ( async ( ) => {
618
+ calcValuePropModel = await createModel < {
619
+ Person : {
620
+ Id : string ;
621
+ Name : string ;
622
+ Email : string ;
623
+ }
624
+ } > ( {
619
625
Person : {
620
626
Id : {
621
627
type : String ,
@@ -668,8 +674,14 @@ describe("Property", () => {
668
674
describe ( "defaulted value property" , ( ) => {
669
675
let defaultedValuePropModel : Model ;
670
676
671
- beforeAll ( ( ) => {
672
- defaultedValuePropModel = new Model ( {
677
+ beforeAll ( async ( ) => {
678
+ defaultedValuePropModel = await createModel < {
679
+ Person : {
680
+ Id : string ;
681
+ Name : string ;
682
+ Email : string ;
683
+ }
684
+ } > ( {
673
685
Person : {
674
686
Id : {
675
687
type : String ,
You can’t perform that action at this time.
0 commit comments