不要怂,就是干,撸起袖子干!

Commit c9b85241 by Pedro Augusto de Paula Barbosa Committed by Sushant

test(validation): throw instead of promise.reject (#10306)

1 parent 9c0f0414
Showing with 1 additions and 2 deletions
...@@ -477,9 +477,8 @@ describe(Support.getTestDialectTeaser('InstanceValidator'), () => { ...@@ -477,9 +477,8 @@ describe(Support.getTestDialectTeaser('InstanceValidator'), () => {
validate: { validate: {
customFn() { customFn() {
if (this.get('name') === 'error') { if (this.get('name') === 'error') {
return Promise.reject(new Error('Error from model validation promise')); throw new Error('Error from model validation promise');
} }
return Promise.resolve();
} }
} }
}); });
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!