mirror of https://github.com/webpack/webpack.git
16 lines
546 B
JavaScript
16 lines
546 B
JavaScript
|
|
it("should error importModule when a cycle with 2 modules is requested", () => {
|
||
|
|
expect(require("./loader!./2/a")).toMatch(
|
||
|
|
/^source: err: There is a circular build dependency/
|
||
|
|
);
|
||
|
|
});
|
||
|
|
it("should error importModule when a cycle with 3 modules is requested", () => {
|
||
|
|
expect(require("./loader!./3/a")).toMatch(
|
||
|
|
/^source: source: err: There is a circular build dependency/
|
||
|
|
);
|
||
|
|
});
|
||
|
|
it("should error importModule when requesting itself", () => {
|
||
|
|
expect(require("./loader!./1/a")).toMatch(
|
||
|
|
/^err: There is a circular build dependency/
|
||
|
|
);
|
||
|
|
});
|