diff --git a/packages/liveui/liveui_tests.js b/packages/liveui/liveui_tests.js index e9d7fcbd5b..88ff1d92d4 100644 --- a/packages/liveui/liveui_tests.js +++ b/packages/liveui/liveui_tests.js @@ -347,7 +347,7 @@ test("render - events", function () { }); test("renderList - basics", function () { - var c = Meteor.Collection(); + var c = new Collection(); var r = Meteor.ui.renderList(c.find({}, {sort: ['id']}), { render: function (doc) { @@ -413,7 +413,7 @@ test("renderList - basics", function () { }); test("renderList - removal", function () { - var c = Meteor.Collection(); + var c = new Collection(); // (test is written in this weird way for historical reasons; feel // free to refactor) c.insert({id: "D"}); @@ -475,7 +475,7 @@ test("renderList - removal", function () { }); test("renderList - default render empty", function () { - var c = Meteor.Collection(); + var c = new Collection(); var r = Meteor.ui.renderList(c.find({}, {sort: ['id']}), { render: function (doc) { @@ -491,7 +491,7 @@ test("renderList - default render empty", function () { }); test("renderList - change and move", function () { - var c = Meteor.Collection(); + var c = new Collection(); var r = Meteor.ui.renderList(c.find({}, {sort: ['id']}), { render: function (doc) { @@ -523,7 +523,7 @@ test("renderList - change and move", function () { }); test("renderList - termination", function () { - var c = Meteor.Collection(); + var c = new Collection(); var r = Meteor.ui.renderList(c.find({}, {sort: ['id']}), { render: function (doc) { @@ -614,7 +614,7 @@ test("renderList - termination", function () { }); test("renderList - list items are reactive", function () { - var c = Meteor.Collection(); + var c = new Collection(); set_weather("here", "cloudy"); set_weather("there", "cloudy"); @@ -737,7 +737,7 @@ test("renderList - list items are reactive", function () { }); test("renderList - multiple elements in an item", function () { - var c = Meteor.Collection(); + var c = new Collection(); var r; var lengths = []; @@ -833,7 +833,7 @@ test("renderList - multiple elements in an item", function () { }); test("renderList - #each", function () { - var c = Meteor.Collection(); + var c = new Collection(); var render_count = 0; diff --git a/packages/templating/templating_tests.js b/packages/templating/templating_tests.js index a31c60865b..737e62b14e 100644 --- a/packages/templating/templating_tests.js +++ b/packages/templating/templating_tests.js @@ -52,7 +52,7 @@ test("template table assembly", function() { table = childWithTag(Template.test_table_b0(), "TABLE"); assert.equal(table.rows.length, 3); - var c = Meteor.Collection(); + var c = new Collection(); c.insert({bar:'a'}); c.insert({bar:'b'}); c.insert({bar:'c'});