Skip to content

Commit

Permalink
Fixes modules test to actually test modules (#3672)
Browse files Browse the repository at this point in the history
* Fixes modules test to actually test modules

It is a mystery how these tests ever passed before.

* Correct test -> suite
  • Loading branch information
Diogo Franco authored and hzoo committed Aug 23, 2016
1 parent 3d0ef3a commit 1e6257b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/babel-preset-es2015/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,28 +27,28 @@ suite("es2015 preset", function () {
});
});

test("modules", function () {
suite("modules", function () {
test("doesn't throw when passing one false", function () {
expect(function () {
es2015.buildPreset(null, { loose: false });
es2015.buildPreset(null, { modules: false });
}).not.to.throw();
});

test("doesn't throw when passing one of: 'commonjs', 'amd', 'umd', 'systemjs", function () {
expect(function () {
es2015.buildPreset(null, { loose: "commonjs" });
es2015.buildPreset(null, { modules: "commonjs" });
}).not.to.throw();

expect(function () {
es2015.buildPreset(null, { loose: "amd" });
es2015.buildPreset(null, { modules: "amd" });
}).not.to.throw();

expect(function () {
es2015.buildPreset(null, { loose: "umd" });
es2015.buildPreset(null, { modules: "umd" });
}).not.to.throw();

expect(function () {
es2015.buildPreset(null, { loose: "systemjs" });
es2015.buildPreset(null, { modules: "systemjs" });
}).not.to.throw();
});
});
Expand Down

0 comments on commit 1e6257b

Please sign in to comment.