Skip to content

Commit 23c538f

Browse files
committed
Updated test/common.js to requier Esprima and pass it to the jQuery-PluginCreator factory.
1 parent 726f47b commit 23c538f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/common.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
var test = require("unit.js"),
33
fs = require("fs"),
44
jsdom = require("jsdom"),
5+
esprima = require("esprima"),
56
html = fs.readFileSync(__dirname + "/test.html"),
67
common = {
78
getDocument: function () {
@@ -13,7 +14,7 @@ var test = require("unit.js"),
1314
getjQuery: function (window) {
1415
var window = window || common.getWindow(),
1516
jQuery = require("jquery")(window),
16-
pluginCreator = require(__dirname + "/../js/jquery.plugincreator.js")(jQuery);
17+
pluginCreator = require(__dirname + "/../js/jquery.plugincreator.js")(jQuery, esprima);
1718
return jQuery;
1819
}
1920
};

0 commit comments

Comments
 (0)