Skip to content

Commit

Permalink
Move "undefined" into the default externs for unit tests.
Browse files Browse the repository at this point in the history
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=175550662
  • Loading branch information
concavelenz authored and Tyler Breisacher committed Nov 13, 2017
1 parent bcf3f9c commit 4e25826
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions test/com/google/javascript/jscomp/CompilerTestCase.java
Expand Up @@ -192,6 +192,8 @@ public abstract class CompilerTestCase extends TestCase {
/** A minimal set of externs, consisting of only those needed for NTI not to blow up. */
protected static final String MINIMAL_EXTERNS =
LINE_JOINER.join(
"/** @type {undefined} */",
"var undefined;",
"/**",
" * @constructor",
" * @param {*=} opt_value",
Expand Down
Expand Up @@ -24,7 +24,7 @@
public final class OptimizeParametersTest extends CompilerTestCase {

public OptimizeParametersTest() {
super(lines(DEFAULT_EXTERNS, "var undefined;"));
super(DEFAULT_EXTERNS);
}

@Override
Expand Down

0 comments on commit 4e25826

Please sign in to comment.