Skip to content

Commit fd43f11

Browse files
author
chuckd
committed
Update unit test per review comments
1 parent d46663e commit fd43f11

File tree

1 file changed

+5
-3
lines changed
  • test/cases/compile/require-context

1 file changed

+5
-3
lines changed
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
it("should maintain require context", function() {
22
var context = {foo: "bar"};
3-
require(["./a", "./b"], function(a, b) {
4-
this.foo.should.eql("bar");
5-
}.bind(context));
3+
(function(){
4+
require(["./a", "./b"], function(a, b) {
5+
this.foo.should.eql("bar");
6+
}.bind(this));
7+
}).call(context);
68
});

0 commit comments

Comments
 (0)