Skip to content

Commit

Permalink
[16534][test] Improve unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
taochaoquan-bosch committed Sep 25, 2024
1 parent 9da994c commit 7caf350
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ public void testIncludes() throws ScriptException {
String content = "['abc','def'].includes('abc')";
boolean result = SwitchTaskUtils.evaluate(content);
Assertions.assertTrue(result);

SwitchTaskUtils.evaluate(SwitchTaskUtils.NASHORN_POLYFILL_ARRAY_PROTOTYPE_INCLUDES);
result = SwitchTaskUtils.evaluate(content);
Assertions.assertTrue(result);
}

}

0 comments on commit 7caf350

Please sign in to comment.