@cerebral/fluent
Advanced tools
Comparing version 1.0.0-1518408921089 to 1.0.0-1518417962068
@@ -27,3 +27,3 @@ /* eslint-env mocha */ | ||
}); | ||
it('should throw when trying to mutate state outside actions', () => { | ||
it('should not throw when trying to mutate state outside actions', () => { | ||
const rootModule = Module({ | ||
@@ -38,3 +38,3 @@ state: { | ||
}); | ||
assert.throws(() => { | ||
assert.doesNotThrow(() => { | ||
controller.state.foo = 'bar2'; | ||
@@ -41,0 +41,0 @@ }); |
@@ -190,3 +190,3 @@ import { extractModuleProp, isObject, BaseModel } from 'cerebral/internal'; | ||
super(controller); | ||
useStrict(true); | ||
useStrict(false); | ||
this.state = extractModuleProp(controller.module, 'state', (state, module) => { | ||
@@ -193,0 +193,0 @@ return this.observeState(state); |
{ | ||
"name": "@cerebral/fluent", | ||
"version": "1.0.0-1518408921089", | ||
"version": "1.0.0-1518417962068", | ||
"description": "Makes Cerebral typescript friendly", | ||
@@ -27,3 +27,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"cerebral": "^4.2.0-1518408921089", | ||
"cerebral": "^4.2.0-1518417962068", | ||
"mobx": "^3.4.1" | ||
@@ -30,0 +30,0 @@ }, |
54094