Avoid using OptionManager statics
This commit is contained in:
parent
ded4ca48cd
commit
86fc4fbc4f
@ -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", () => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user