Skip to content
This repository has been archived by the owner on Dec 2, 2019. It is now read-only.

Commit

Permalink
Fixed list test: order.contact_email may be null
Browse files Browse the repository at this point in the history
  • Loading branch information
nozzlegear committed Jun 11, 2018
1 parent ed5ec08 commit f76476f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/orders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,10 @@ export class OrderTests {
list.forEach(order => {
Expect(order).toBeType("object");
Expect(order.id).toBeGreaterThanOrEqualTo(1);
Expect(order.contact_email).toBeType("string");

if (order.contact_email !== null) {
Expect(order.contact_email).toBeType("string");
}
})
}

Expand Down

0 comments on commit f76476f

Please sign in to comment.