add modules ignore tests

This commit is contained in:
Sebastian McKenzie 2014-11-07 20:46:20 +11:00
parent e327e041ab
commit 2a9af21e93
23 changed files with 100 additions and 0 deletions

View File

@ -0,0 +1,8 @@
export default 42;
export default {};
export default [];
export default foo;
export default function () {}
export default class {}
export default function foo () {}
export default class Foo {}

View File

@ -0,0 +1,5 @@
"use strict";
function foo() {}
var Foo = function Foo() {}

View File

@ -0,0 +1,6 @@
export * from "foo";
export {foo} from "foo";
export {foo, bar} from "foo";
export {foo as bar} from "foo";
export {foo as default} from "foo";
export {foo as default, bar} from "foo";

View File

@ -0,0 +1 @@
"use strict";

View File

@ -0,0 +1,5 @@
export {foo};
export {foo, bar};
export {foo as bar};
export {foo as default};
export {foo as default, bar};

View File

@ -0,0 +1 @@
"use strict";

View File

@ -0,0 +1,8 @@
export var foo = 1;
export var foo2 = function () {};
export var foo3;
export let foo4 = 2;
export let foo5;
export const foo6 = 3;
export function foo7 () {}
export class foo8 {}

View File

@ -0,0 +1,10 @@
"use strict";
var foo = 1;
var foo2 = function () {};
var foo3;
var foo4 = 2;
var foo5;
var foo6 = 3;
function foo7() {}
var foo8 = function foo8() {};

View File

@ -0,0 +1,11 @@
import { isEven } from "./evens";
export function nextOdd(n) {
return isEven(n) ? n + 1 : n + 2;
}
export var isOdd = (function (isEven) {
return function (n) {
return !isEven(n);
};
})(isEven);

View File

@ -0,0 +1,11 @@
"use strict";
function nextOdd(n) {
return isEven(n) ? n + 1 : n + 2;
}
var isOdd = (function (isEven) {
return function (n) {
return !isEven(n);
};
})(isEven);

View File

@ -0,0 +1,2 @@
import foo from "foo";
import {default as foo} from "foo";

View File

@ -0,0 +1 @@
"use strict";

View File

@ -0,0 +1 @@
import * as foo from "foo";

View File

@ -0,0 +1 @@
"use strict";

View File

@ -0,0 +1 @@
import foo, {baz as xyz} from "foo";

View File

@ -0,0 +1 @@
"use strict";

View File

@ -0,0 +1,4 @@
import {bar} from "foo";
import {bar, baz} from "foo";
import {bar as baz} from "foo";
import {bar as baz, xyz} from "foo";

View File

@ -0,0 +1 @@
"use strict";

View File

@ -0,0 +1,3 @@
import "foo";
import "foo-bar";
import "./directory/foo-bar";

View File

@ -0,0 +1 @@
"use strict";

View File

@ -0,0 +1,3 @@
{
"modules": "ignore"
}

View File

@ -0,0 +1,12 @@
import "foo";
import "foo-bar";
import "./directory/foo-bar";
import foo from "foo";
import * as foo from "foo";
import {bar} from "foo";
import {foo as bar} from "foo";
export {test};
export var test = 5;
export default test;

View File

@ -0,0 +1,3 @@
"use strict";
var test = 5;