Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Clean out lint

  • Loading branch information...
commit da5f2535d55501c0f48092ac138d58e21efff69e 1 parent dce92b2
Saimon Moore saimonmoore authored

Showing 1 changed file with 28 additions and 9 deletions. Show diff stats Hide diff stats

  1. +28 9 test/test.js
37 test/test.js
@@ -193,7 +193,14 @@ describe('Aggregated collections', function () {
193 193 assert.deepEqual(_.pluck(tasks.models, 'cid'), ['c6', 'c7', 'c8']);
194 194 assert.deepEqual(_.pluck(archived_tasks.models, 'cid'), ['c8', 'c7']);
195 195
196   - happened = {archived_tasks: 0, tasks: 0, tasks_add: 0, archived_tasks_add: 0, tasks_remove: 0, archived_tasks_remove: 0};
  196 + happened = {
  197 + archived_tasks: 0
  198 + , tasks: 0
  199 + , tasks_add: 0
  200 + , archived_tasks_add: 0
  201 + , tasks_remove: 0
  202 + , archived_tasks_remove: 0
  203 + };
197 204 tasks.unbind('add');
198 205 archived_tasks.unbind('add');
199 206 tasks.unbind('reset');
@@ -208,7 +215,19 @@ describe('Aggregated collections', function () {
208 215 tasks.bind('remove', inc('tasks_remove'));
209 216 archived_tasks.bind('remove', inc('archived_tasks_remove'));
210 217
211   - archived_tasks.reset([{id: 4, archived: 0, order: 4}, {id: 5, archived: 1, order: 5}, {id: 6, archived: 1, order: 6}]);
  218 + archived_tasks.reset([{
  219 + id: 4
  220 + , archived: 0
  221 + , order: 4
  222 + }, {
  223 + id: 5
  224 + , archived: 1
  225 + , order: 5
  226 + }, {
  227 + id: 6
  228 + , archived: 1
  229 + , order: 6
  230 + }]);
212 231
213 232 assert.equal(happened.tasks, 0);
214 233 assert.equal(happened.archived_tasks, 1);
@@ -224,8 +243,8 @@ describe('Aggregated collections', function () {
224 243 });
225 244 });
226 245
227   -describe('Live updating subset membership', function() {
228   - it('removes a model from the subset if the model\'s attributes change such that it\'s no longer part of the set', function() {
  246 +describe('Live updating subset membership', function () {
  247 + it('removes a model from the subset if the model\'s attributes change such that it\'s no longer part of the set', function () {
229 248 tasks = new Collections.Tasks();
230 249 archived_tasks = new Collections.ArchivedTasks(null, {liveupdate_keys: 'all'});
231 250
@@ -239,7 +258,7 @@ describe('Live updating subset membership', function() {
239 258 assert.equal(archived_tasks.length, 1);
240 259 });
241 260
242   - it('adds a model to the set if the model\'s attributes change such that it should now be sieved into the set', function() {
  261 + it('adds a model to the set if the model\'s attributes change such that it should now be sieved into the set', function () {
243 262 tasks = new Collections.Tasks();
244 263 archived_tasks = new Collections.ArchivedTasks(null, {liveupdate_keys: 'all'});
245 264
@@ -253,7 +272,7 @@ describe('Live updating subset membership', function() {
253 272 assert.equal(archived_tasks.length, 3);
254 273 });
255 274
256   - it('adds a model to the set if the model\'s attributes change such that it should now be sieved into the set', function() {
  275 + it('adds a model to the set if the model\'s attributes change such that it should now be sieved into the set', function () {
257 276 tasks = new Collections.Tasks();
258 277 archived_tasks = new Collections.ArchivedTasks(null, {liveupdate_keys: 'all'});
259 278
@@ -266,8 +285,8 @@ describe('Live updating subset membership', function() {
266 285 assert.equal(tasks.length, 3);
267 286 assert.equal(archived_tasks.length, 3);
268 287 });
269   -
270   - it('won\'t update a subset\'s members if a key changes that is not listed in liveupdate_keys', function() {
  288 +
  289 + it('won\'t update a subset\'s members if a key changes that is not listed in liveupdate_keys', function () {
271 290 tasks = new Collections.Tasks();
272 291 archived_tasks = new Collections.ArchivedTasks(null, {liveupdate_keys: ['order']});
273 292
@@ -285,7 +304,7 @@ describe('Live updating subset membership', function() {
285 304 assert.equal(archived_tasks.length, 2);
286 305 });
287 306
288   - it('will update a subset\'s members if a key changes that is listed in liveupdate_keys', function() {
  307 + it('will update a subset\'s members if a key changes that is listed in liveupdate_keys', function () {
289 308 tasks = new Collections.Tasks();
290 309 archived_tasks = new Collections.ArchivedTasks(null, {liveupdate_keys: ['archived']});
291 310

0 comments on commit da5f253

Please sign in to comment.
Something went wrong with that request. Please try again.