Skip to content

Commit

Permalink
Update helpers_tests.js for sets tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mynameismud committed Oct 1, 2013
1 parent ef81f94 commit 80b9a0f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/helpers_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,18 @@ module.exports = {
test.done();
},

sets_strings_are_valid: function (test) {
var res = helpers.is_valid_packet(['foo', 's']);
test.equals(res, true);
test.done();
},

sets_numeric_are_valid: function (test) {
var res = helpers.is_valid_packet(['123456', 's']);
test.equals(res, true);
test.done();
},

correct_packet: function (test) {
var res = helpers.is_valid_packet(['345345', 'ms', '@1.0']);
test.equals(res, true);
Expand Down

0 comments on commit 80b9a0f

Please sign in to comment.