From b2904e3931df01d025ddda1919a97da375ca7c2e Mon Sep 17 00:00:00 2001 From: Patrick Vatterott Date: Wed, 15 Mar 2017 11:51:04 -0400 Subject: [PATCH] Assert Partial in test --- tests/ts/examples.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ts/examples.ts b/tests/ts/examples.ts index 046d21d3f..1125f5108 100644 --- a/tests/ts/examples.ts +++ b/tests/ts/examples.ts @@ -224,7 +224,7 @@ const p: Promise = qb.then(() => 'done'); // Verify that we can insert a partial model and relate a partial movie Person.query() - .insertAndFetch({firstName: "Jim"}) + .insertAndFetch({firstName: "Jim"} as Partial) .then((p: Person) => { console.log(`Inserted ${p}`); p.$loadRelated('movies')