Avoid using OptionManager statics

This commit is contained in:
Logan Smyth 2017-04-03 14:47:07 -07:00
parent ded4ca48cd
commit 86fc4fbc4f

View File

@ -3,13 +3,15 @@ import OptionManager from "../lib/config/option-manager";
import path from "path"; import path from "path";
describe("option-manager", () => { describe("option-manager", () => {
describe("memoisePluginContainer", () => { it("throws for babel 5 plugin", () => {
it("throws for babel 5 plugin", () => { return assert.throws(() => {
return assert.throws( const opt = new OptionManager();
() => OptionManager.memoisePluginContainer(({ Plugin }) => new Plugin("object-assign", {})), opt.init({
/Babel 5 plugin is being run with Babel 6/ plugins: [
); ({ Plugin }) => new Plugin("object-assign", {}),
}); ],
});
}, /Babel 5 plugin is being run with Babel 6/);
}); });
describe("mergeOptions", () => { describe("mergeOptions", () => {