mirror of https://github.com/webpack/webpack.git
12 lines
252 B
JavaScript
12 lines
252 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");
|
||
|
done();
|
||
|
});
|
||
|
});
|