Skip to content

Commit

Permalink
test: enable test cases for allow_reject options
Browse files Browse the repository at this point in the history
  • Loading branch information
no-yan committed Nov 13, 2024
1 parent a75bb8b commit 9b9f220
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -600,11 +600,15 @@ fn test() {
(r"function then() { return Promise.reject() }", None),
(r"doThing(function(x) { return Promise.reject(x) })", None),
(r"doThing().then(function() { return })", None),
// TODO: support `allow_reject` option
// "doThing().then(function() { return Promise.reject(4) })",
(
"doThing().then(function() { return Promise.reject(4) })",
Some(serde_json::json!([{ "allowReject": true }])),
),
(r"doThing().then((function() { return Promise.resolve(4) }).toString())", None),
// TODO: support `allow_reject` option
// "doThing().then(() => Promise.reject(4))",
(
"doThing().then(() => Promise.reject(4))",
Some(serde_json::json!([{ "allowReject": true }])),
),
(r"doThing().then(function() { return a() })", None),
(r"doThing().then(function() { return Promise.a() })", None),
(r"doThing().then(() => { return a() })", None),
Expand Down

0 comments on commit 9b9f220

Please sign in to comment.