Skip to content

Commit

Permalink
Add tests for set sans callback
Browse files Browse the repository at this point in the history
  • Loading branch information
megawac committed Dec 12, 2014
1 parent 294d72f commit aa97383
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion test/examples/params.js → test/examples/params.examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,19 @@ describe('Param setting', function() {
expect(param.name).to.be.equal('/test/foo');
});

it('Param.set', function(done) {
it('Param.set no callback', function(done) {
param.set('foo');
setTimeout(done, 500);
});

it('Param.get', function(done) {
param.get(function(result) {
expect(result).to.be.equal('foo');
done();
});
});

it('Param.set w/ callback', function(done) {
param.set('bar', function() {
done();
});
Expand Down

0 comments on commit aa97383

Please sign in to comment.