Skip to content
Permalink
Browse files

Add failing test to show the problem

Signed-off-by: Niels van Hoorn <nvh@nvh.io>
  • Loading branch information
nvh committed Sep 28, 2016
1 parent 6c8224f commit 348fe2ad0b66db525b034dc43ba5427f427b0822
Showing with 20 additions and 0 deletions.
  1. +20 −0 test/tests/BaseClassTest.coffee
@@ -204,3 +204,23 @@ describe "BaseClass", ->

instance.testPropA.should.equal "a"
instance.testPropB.should.equal "value"
it "should not share properties in subclasses", ->

class LalaLayer extends Framer.BaseClass
@define "blabla",
get: -> "hoera"
set: -> "sdfsd"

class TestClassD extends LalaLayer
@define "a",
get: -> "getClassD"
set: -> "setClassD"


class TestClassC extends LalaLayer
@define "a",
get: -> "getClassC"
# set: -> "setClassC"

expect(TestClassD["_DefinedPropertiesKey"]?.a?.set).to.be.ok
expect(TestClassC["_DefinedPropertiesKey"]?.a?.set).to.not.be.ok

0 comments on commit 348fe2a

Please sign in to comment.
You can’t perform that action at this time.