Skip to content

Commit

Permalink
Fix test for api.Performance.measure.measureOptions_parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
queengooborg committed Sep 20, 2024
1 parent b3f0d8c commit 0ea4989
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion custom/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3805,7 +3805,14 @@ api:
function measure(options) {
instance.measure('foo', options);
}
return bcd.testOptionParam(measure, null, 'detail', 'bar', {'start': 0});
try {
return bcd.testOptionParam(measure, null, 'detail', 'bar', {'start': 0});
} catch(e) {
if (e instanceof SyntaxError) {
return {result: false, message: e.message}
}
return e;
}
returns_performancemeasure: return !!instance.measure('foo');
PerformanceEntry:
__base: |-
Expand Down

0 comments on commit 0ea4989

Please sign in to comment.