Meteor.Collection() -> new Collection() in tests

This commit is contained in:
David Greenspan
2012-02-07 12:06:51 -08:00
parent f1368be4d8
commit 476db8cccb
2 changed files with 9 additions and 9 deletions

View File

@@ -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;

View File

@@ -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'});