From 4ea100764559c931cb6c6b4f716fbc533964fa33 Mon Sep 17 00:00:00 2001 From: Richard Macklin Date: Sat, 15 Oct 2016 14:41:03 -0700 Subject: [PATCH] Remove unneeded tests Previously these were testing the logic that is now encapsulated in getPossiblePresetNames and tested in a unit test --- packages/babel-core/test/api.js | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/packages/babel-core/test/api.js b/packages/babel-core/test/api.js index 55fc0d013a..0b997fb4a0 100644 --- a/packages/babel-core/test/api.js +++ b/packages/babel-core/test/api.js @@ -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\"); } }",