Remove unneeded tests

Previously these were testing the logic that is now encapsulated in
getPossiblePresetNames and tested in a unit test
This commit is contained in:
Richard Macklin
2016-10-15 14:41:03 -07:00
parent e24f07dfda
commit 4ea1007645

View File

@@ -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\"); } }",