Skip to content

Commit

Permalink
Remove unneeded tests
Browse files Browse the repository at this point in the history
Previously these were testing the logic that is now encapsulated in
getPossiblePresetNames and tested in a unit test
  • Loading branch information
rmacklin committed Oct 16, 2016
1 parent e24f07d commit 4ea1007
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions packages/babel-core/test/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,28 +263,6 @@ describe("api", function () {

});

it("handles preset shortcuts (adds babel-preset-)", function () {
return assert.throws(
function () {
babel.transform("", {
presets: ["@babel/es2015"]
});
},
/Couldn\'t find preset \"\@babel\/es2015\" relative to directory/
);
});

it("handles preset shortcuts 2 (adds babel-preset-)", function () {
return assert.throws(
function () {
babel.transform("", {
presets: ["@babel/react/optimizations"]
});
},
/Couldn\'t find preset \"\@babel\/react\/optimizations\" relative to directory/
);
});

it("source map merging", function () {
let result = babel.transform([
"function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }",
Expand Down

0 comments on commit 4ea1007

Please sign in to comment.