Skip to content

Commit

Permalink
add failing test case related to #22
Browse files Browse the repository at this point in the history
  • Loading branch information
Juha Paananen committed Nov 4, 2013
1 parent 196e76b commit 5e03726
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/bacon.jquery.spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,14 @@ describe "Model.lens", ->
brandValues = collect(nonNullBrand)
car.set {}
expect(brandValues).to.deep.equal ["Ford", ""]
it.only "another setup", ->
a = Bacon.Model()
f = a.lens("first").log("first")
l = a.lens("last").log("last")
stuff = Bacon.Model.combine({f, l}).log("stuff")
values = collect(stuff)
a.set({first:"f", last:"l"})
expect(values).to.deep.equal([{}, {first: "f", last: "l"}])

describe "Model.combine", ->
it "creates a new model using a template", ->
Expand Down

0 comments on commit 5e03726

Please sign in to comment.