Assert that tree exists, fix tests (#358)

* assert that tree exists, fix tests

* make assertions more helpful
This commit is contained in:
Tim Wisniewski
2016-12-22 06:55:36 -05:00
committed by GitHub
parent ff1073a664
commit 3b5740c00e
4 changed files with 12 additions and 20 deletions
+2
View File
@@ -16,6 +16,7 @@ test('freeze (default)', function (t) {
t.equal(state.foo, 'bar', 'cannot modify property')
state.bar = 'baz'
t.equal(state.bar, undefined, 'cannot add property')
return document.createElement('div')
}])
app.start()
@@ -36,6 +37,7 @@ test('noFreeze', function (t) {
t.equal(state.foo, '', 'can modify property')
state.bar = 'baz'
t.equal(state.bar, 'baz', 'can add property')
return document.createElement('div')
}])
app.start()