2017-02-20 16:30:16 -07:00

14 lines
418 B
JavaScript

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