Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call done.fail correctly in the scripting_spec.js unit-tests #12732

Merged
merged 1 commit into from
Dec 12, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions test/unit/scripting_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -749,8 +749,8 @@ describe("Scripting", function () {
});

done();
} catch (_) {
done.fail();
} catch (ex) {
done.fail(ex);
}
});
});
Expand Down Expand Up @@ -793,8 +793,8 @@ describe("Scripting", function () {
valueAsString: "123456.789",
});
done();
} catch (_) {
done.fail();
} catch (ex) {
done.fail(ex);
}
});

Expand Down Expand Up @@ -834,8 +834,8 @@ describe("Scripting", function () {
value: "Invalid number in [ MyField ]",
});
done();
} catch (_) {
done.fail();
} catch (ex) {
done.fail(ex);
}
});
});
Expand Down Expand Up @@ -893,8 +893,8 @@ describe("Scripting", function () {
});

done();
} catch (_) {
done.fail();
} catch (ex) {
done.fail(ex);
}
});
});
Expand Down Expand Up @@ -948,8 +948,8 @@ describe("Scripting", function () {
});

done();
} catch (_) {
done.fail();
} catch (ex) {
done.fail(ex);
}
});
});
Expand Down Expand Up @@ -990,8 +990,8 @@ describe("Scripting", function () {
});

done();
} catch (_) {
done.fail();
} catch (ex) {
done.fail(ex);
}
});

Expand Down Expand Up @@ -1029,8 +1029,8 @@ describe("Scripting", function () {
});

done();
} catch (_) {
done.fail();
} catch (ex) {
done.fail(ex);
}
});
});
Expand Down Expand Up @@ -1124,8 +1124,8 @@ describe("Scripting", function () {
});

done();
} catch (_) {
done.fail();
} catch (ex) {
done.fail(ex);
}
});
});
Expand Down Expand Up @@ -1202,8 +1202,8 @@ describe("Scripting", function () {
});

done();
} catch (_) {
done.fail();
} catch (ex) {
done.fail(ex);
}
});
});
Expand Down