datavis-tech / reactive-model

A library for reactive dataflow programming.
MIT License
61 stars 6 forks source link

Throw error when setting configuration and no properties exposed #34

Open curran opened 8 years ago

curran commented 8 years ago
    it("Should throw an error when setting configuration if no exposed properties.", function (){

      var my = ReactiveModel();

      assert.throws(function (){
        my({
          x: 20,
          y: 50
        });
      }, /no properties exposed/);

    });
curran commented 8 years ago

Part of https://github.com/datavis-tech/reactive-model/issues/33