Skip to content

Commit

Permalink
fix the parameter order for assertEquals calls
Browse files Browse the repository at this point in the history
  • Loading branch information
rbri committed Oct 4, 2024
1 parent d04c1a8 commit d2e2921
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ public void forOfUsingNonSymbolScriptable() {
null);

} catch (Throwable t) {
assertEquals(t.getClass(), EcmaError.class);
assertEquals(t.getMessage(), "TypeError: [object Object] is not iterable");
assertEquals(EcmaError.class, t.getClass());
assertEquals("TypeError: [object Object] is not iterable", t.getMessage());
}

return null;
Expand Down Expand Up @@ -143,8 +143,8 @@ public void forOfUsingNonIterable() {
0,
null);
} catch (Throwable t) {
assertEquals(t.getClass(), EcmaError.class);
assertEquals(t.getMessage(), "TypeError: [object Object] is not iterable");
assertEquals(EcmaError.class, t.getClass());
assertEquals("TypeError: [object Object] is not iterable", t.getMessage());
}

return null;
Expand Down

0 comments on commit d2e2921

Please sign in to comment.