diff --git a/www/BaseClass.spec.js b/www/BaseClass.spec.js new file mode 100644 index 000000000..3d63e4624 --- /dev/null +++ b/www/BaseClass.spec.js @@ -0,0 +1,17 @@ +const BaseClass = require('./BaseClass'); + +describe('BaseClass', () => { + let instanceA = new BaseClass(); + let instanceB = new BaseClass(); + + it('"instanceA.hello" should be "world"', () => { + instanceA.set('hello', 'world'); + expect(instanceA.get('hello')).toEqual('world'); + }); + + it('"instanceB.anotherHello" should be the same as "instanceA.hello"', () => { + instanceA.bindTo('hello', instanceB, 'anotherHello'); + expect(instanceB.get('anotherHello')).toEqual('world'); + }); + +});