Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
rbri committed Dec 16, 2024
1 parent 4648d15 commit 6dbb359
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
package org.mozilla.javascript.tests;

import static org.junit.Assert.assertThrows;

import org.junit.Test;
import org.mozilla.javascript.EvaluatorException;
import org.mozilla.javascript.Scriptable;

public class NullishCoalescingOpTest {
@Test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
package org.mozilla.javascript.tests;

import static org.junit.Assert.assertThrows;

import org.junit.Test;
import org.mozilla.javascript.EvaluatorException;
import org.mozilla.javascript.Scriptable;
import org.mozilla.javascript.Undefined;

public class OptionalChainingOperatorTest {
Expand Down
4 changes: 3 additions & 1 deletion tests/src/test/java/org/mozilla/javascript/tests/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,9 @@ private static <T extends Exception> void assertException(
String js) {

// to avoid false positives because we use startsWith()
assertTrue("expectedMessage can't be empty",expectedMessage != null && !expectedMessage.isEmpty());
assertTrue(
"expectedMessage can't be empty",
expectedMessage != null && !expectedMessage.isEmpty());

Utils.runWithAllOptimizationLevels(
cx -> {
Expand Down

0 comments on commit 6dbb359

Please sign in to comment.