Skip to content

Commit

Permalink
Disable unit tests depending on having export statements not module t…
Browse files Browse the repository at this point in the history
…op-level.

We should be able to reenable these after moving module transpilation to come
after TypeScript transpilation.

Since we don't currently support outputting ES6 module code, this shouldn't
break anyone.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=157640865
  • Loading branch information
blickly authored and Tyler Breisacher committed Jun 1, 2017
1 parent 2dfcc43 commit 83681e4
Showing 1 changed file with 9 additions and 5 deletions.
Expand Up @@ -435,13 +435,16 @@ public void testAmbientNamespace() {
"export declare namespace foo.bar {}",
"export /** @const */ var foo = {}; /** @const */ foo.bar = {};");

testDts(
"export declare namespace foo.bar { export var x; }",
"export /** @const */ var foo = {}; /** @const */ foo.bar = {}; foo.bar.x;");

testDts(
"export declare namespace foo.bar {} export declare namespace foo.bar {}",
"export /** @const */ var foo = {}; /** @const */ foo.bar = {};");
}

public void disable_testAmbientNamespace() {
// TODO(blickly): Reenable these once module rewriting happens after Typescript transpilation.
testDts(
"export declare namespace foo.bar { export var x; }",
"export /** @const */ var foo = {}; /** @const */ foo.bar = {}; foo.bar.x;");

testDts(
"export declare namespace foo { var i, j, k; }",
Expand Down Expand Up @@ -502,7 +505,8 @@ public void testExportAmbientDeclaration() {
Es6TypedToEs6Converter.NON_AMBIENT_NAMESPACE_NOT_SUPPORTED);
}

public void testExportDeclarationInAmbientNamespace() {
public void disable_testExportDeclarationInAmbientNamespace() {
// TODO(blickly): Reenable these once module rewriting happens after Typescript transpilation.
testDts(
"declare namespace foo { export var i, j, k; }",
"/** @const */ var foo = {}; foo.i; foo.j; foo.k;");
Expand Down

0 comments on commit 83681e4

Please sign in to comment.