Skip to content

Commit

Permalink
fixup! Extract getPossiblePluginNames
Browse files Browse the repository at this point in the history
  • Loading branch information
rmacklin committed Oct 15, 2016
1 parent 50268c9 commit fe56732
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/babel-core/test/get-possible-plugin-names.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
var assert = require("assert");
var getPossiblePluginNames = require("../lib/helpers/get-possible-plugin-names");
let assert = require("assert");
let getPossiblePluginNames = require("../lib/helpers/get-possible-plugin-names");

test("getPossiblePluginNames", function () {
assert.deepEqual(getPossiblePluginNames("foobar"), ["babel-plugin-foobar", "foobar"]);
describe("getPossiblePluginNames", function () {
it("adds the babel-plugin prefix", function() {
assert.deepEqual(getPossiblePluginNames("foobar"), ["babel-plugin-foobar", "foobar"]);
});
});

0 comments on commit fe56732

Please sign in to comment.