Permalink
Browse files

added test for primitive metadata

  • Loading branch information...
1 parent 2957749 commit f59ef2d6e54ec7878641b8ffa779876cd3d41cbf Eric Schoonover committed with indexzero Sep 24, 2011
Showing with 14 additions and 4 deletions.
  1. +14 −4 test/helpers.js
View
@@ -158,13 +158,23 @@ helpers.testLevels = function (levels, transport, assertMsg, assertFn) {
tests['with the ' + level + ' level'] = test;
});
- var test = {
+ var metadatatest = {
topic: function () {
transport.log('info', 'test message', { metadata: true }, this.callback.bind(this, null));
}
};
- test[assertMsg] = assertFn;
- tests['when passed metadata'] = test;
+ metadatatest[assertMsg] = assertFn;
+ tests['when passed metadata'] = metadatatest;
+
+ var primmetadatatest = {
+ topic: function() {
+ transport.log('info', 'test message', 'metadata', this.callback.bind(this, null));
+ }
+ };
+
+ primmetadatatest[assertMsg] = assertFn;
+ tests['when passed primitive metadata'] = primmetadatatest;
+
return tests;
-};
+};

0 comments on commit f59ef2d

Please sign in to comment.