Skip to content

Commit

Permalink
Test TS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mattheyan committed Apr 19, 2024
1 parent 779d3f9 commit d8c5e62
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions src/property.unit.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable no-new */
import { createEventObject } from "./events";
import { Model } from "./model";
import { Model, createModel } from "./model";
import { ArrayChangeType } from "./observable-array";
import { Property$pendingInit } from "./property";

Expand Down Expand Up @@ -614,8 +614,14 @@ describe("Property", () => {
describe("calculated value property", () => {
let calcValuePropModel: Model;

beforeAll(() => {
calcValuePropModel = new Model({
beforeAll(async () => {
calcValuePropModel = await createModel<{
Person: {
Id: string;
Name: string;
Email: string;
}
}>({
Person: {
Id: {
type: String,
Expand Down Expand Up @@ -668,8 +674,14 @@ describe("Property", () => {
describe("defaulted value property", () => {
let defaultedValuePropModel: Model;

beforeAll(() => {
defaultedValuePropModel = new Model({
beforeAll(async () => {
defaultedValuePropModel = await createModel<{
Person: {
Id: string;
Name: string;
Email: string;
}
}>({
Person: {
Id: {
type: String,
Expand Down

0 comments on commit d8c5e62

Please sign in to comment.