Skip to content

Commit

Permalink
Update a.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Artoria committed May 6, 2017
1 parent 8753b3a commit fee6aaa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions configs/mocha/test/a.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,9 @@ describe('test', function(){
e.initEvent('click', false, false);
app.$root.dispatchEvent(e);
expect(app.get({name: x => x.toUpperCase()}).name).to.eql("WORLD");
app.set({age: 99});
expect(app.get({age: 1}).age).to.eql("99");
app.modify({age: (x) => x * 2});
expect(app.get({age: 1}).age).to.eql("198");
});
})

0 comments on commit fee6aaa

Please sign in to comment.