diff --git a/test/helpers.js b/test/helpers.js index 7925751..292c041 100644 --- a/test/helpers.js +++ b/test/helpers.js @@ -32,6 +32,15 @@ module.exports.testLevels = function (transport, assertMsg, assertFn) { primmetadatatest[assertMsg] = assertFn; tests['when passed primitive metadata'] = primmetadatatest; + var nummetadatatest = { + topic: function () { + transport.log('info', 'test message', 123456789, this.callback.bind(this, null)); + } + }; + + nummetadatatest[assertMsg] = assertFn; + tests['when passed numeric metadata'] = nummetadatatest; + // circular references aren't supportded by regular JSON, and it's not supported // by node-loggly-bulk. I'm omitting it for now. If it wants to be fixed, then // node-loggly-bulk needs an update.