From 5e03726a67af619fd00f99d105240debafd88062 Mon Sep 17 00:00:00 2001 From: Juha Paananen Date: Mon, 4 Nov 2013 10:42:15 +0200 Subject: [PATCH] add failing test case related to #22 --- test/bacon.jquery.spec.coffee | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/bacon.jquery.spec.coffee b/test/bacon.jquery.spec.coffee index 030ea05..a4e58e8 100644 --- a/test/bacon.jquery.spec.coffee +++ b/test/bacon.jquery.spec.coffee @@ -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", ->