Skip to content

Commit

Permalink
tdd here write test first to decide how feed will work
Browse files Browse the repository at this point in the history
  • Loading branch information
wiber committed Mar 21, 2015
1 parent 98dd56d commit f691342
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions testUpdateClient.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,19 @@ Meteor.startup ->
test.equal two.inbox[0].from, rec.from
next()

testing++
Tinytest.addAsync 'feed - '+testing+' client WI.feed has ten dummy items hooked in after server sees feed field', (test, next) ->
WI.update
_id: user
,
feed: 'nothing'
Tracker.autorun (computation) ->
two = WI.findOne
_id: user
unless !two.feed
# the feed function will add feed to the journey of the object
test.equal two.feed[9].journey[0].keys()[0], 'feed'
#next()
#smite one, two, 'one two in testing',testing, rec.from, 'rec', err, eval s
###
Expand Down

0 comments on commit f691342

Please sign in to comment.