Skip to content

Commit

Permalink
Assert Partial<Person> in test
Browse files Browse the repository at this point in the history
  • Loading branch information
pvatterott committed Mar 15, 2017
1 parent 3d9c746 commit b2904e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/ts/examples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ const p: Promise<string> = 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<Person>)
.then((p: Person) => {
console.log(`Inserted ${p}`);
p.$loadRelated('movies')
Expand Down

0 comments on commit b2904e3

Please sign in to comment.