Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhauhau committed Mar 13, 2020
1 parent 485d1b0 commit 81b7845
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/runtime/samples/await-then-destruct-array/_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default {

try {
await (component.thePromise = Promise.reject(['a', [6, 7]]));
} catch {
} catch (e) {
// do nothing
}

Expand All @@ -45,7 +45,7 @@ export default {

try {
await (component.thePromise = Promise.reject(['b', [8, 9]]));
} catch {
} catch (e) {
// do nothing
}

Expand Down
4 changes: 2 additions & 2 deletions test/runtime/samples/await-then-destruct-object/_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default {
await (component.thePromise = Promise.reject({
error: { message: "oops", code: "123" }
}));
} catch {
} catch (e) {
// do nothing
}

Expand All @@ -48,7 +48,7 @@ export default {
await (component.thePromise = Promise.reject({
error: { message: "timeout", code: "456" }
}));
} catch {
} catch (e) {
// do nothing
}

Expand Down

0 comments on commit 81b7845

Please sign in to comment.