Skip to content

Commit

Permalink
Added a test addProperties() with no parameters.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eagerod committed Aug 13, 2016
1 parent fb83773 commit 9b5f65b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/prompt-test.js
Expand Up @@ -647,6 +647,20 @@ vows.describe('prompt').addBatch({
}
}
}
}).addBatch({
"When using prompt": {
"the addProperties() method": {
topic: function () {
prompt.addProperties({'foo': 'foo', 'bar': 'bar'}, [], this.callback);
},
"should return the object as-is when no properties provided": function (err, obj) {
assert.isNull(err);
assert.isObject(obj);
assert.equal(obj.foo, 'foo');
assert.equal(obj.bar, 'bar');
}
}
}
}).addBatch({
"When using prompt": {
"the get() method": {
Expand Down

0 comments on commit 9b5f65b

Please sign in to comment.