Skip to content

Commit

Permalink
enumSchema error example
Browse files Browse the repository at this point in the history
  • Loading branch information
robturtle committed Dec 10, 2019
1 parent 5ad4aed commit 79704d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/sample.ts
Original file line number Diff line number Diff line change
Expand Up @@ -528,5 +528,7 @@ enum OrderStatus {
dec.register(enumSchema('OrderStatus', OrderStatus));

const st = 'pending';
console.log(OrderStatus);
test('enumSchema', 'OrderStatus', st);

const st2 = 'pendding';
test('enumSchema error example', 'OrderStatus', st2, false);

0 comments on commit 79704d6

Please sign in to comment.