2017-02-20 16:04:50 -07:00

14 lines
397 B
JavaScript

var expect = require('chai').expect;
module.exports = function(helpers) {
var widget = helpers.mount(require('./'), {});
var oldState = widget.state.toJSON();
widget.setState('foo', 'bar');
expect(widget.state.toJSON()).to.not.equal(oldState);
oldState = widget.state.toJSON();
widget.setState('hello', 'world');
expect(widget.state.toJSON()).to.equal(oldState);
};