mirror of https://github.com/webpack/webpack.git
15 lines
338 B
JavaScript
15 lines
338 B
JavaScript
it("should replace a context with a new resource and reqExp", function (done) {
|
|
function rqInContext(x, callback) {
|
|
require([x], function (x) {
|
|
callback(x);
|
|
});
|
|
}
|
|
rqInContext("replaced", function (r) {
|
|
expect(r).toBe("ok");
|
|
rqInContext("./modules/replaced", function (r) {
|
|
expect(r).toBe("ok");
|
|
done();
|
|
});
|
|
});
|
|
});
|