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 c40ba72 commit 7f655d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions configs/mocha/test/a.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ describe('test', function(){
<input nt-id='age' nt-default='value'>
</div>`;
var app = nt.app(nt.q("#app"));
app.set({name: "Hello", age: 99});
app.modify({name: x => x.toUpperCase()});
app.set({name: "Hello", age: 99, nothing: 5});
app.modify({name: x => x.toUpperCase(), nothing: (x) => 42});
app.on('click', function(){ app.set({name: 'world'});});
expect(app.get({name: 1}).name).to.eql("HELLO");
var e = document.createEvent('MouseEvent');
Expand All @@ -41,6 +41,6 @@ describe('test', function(){
<div></div>
</div>`, document.body);
app.set({name: "Hello", age: 99});
expect(app.get({name: 1}).name).to.eql("Hello");
expect(app.get({name: 1, nothing: 5}).name).to.eql("Hello");
});
})

0 comments on commit 7f655d5

Please sign in to comment.