Skip to content
Browse files

expose JSONB wrap for testing

  • Loading branch information...
1 parent 296287b commit 2670d73a59d7a8c005ba8b2f6eeaaad0d7b6f21d @dominictarr committed May 21, 2013
Showing with 6 additions and 2 deletions.
  1. +6 −2 jsonb.js
View
8 jsonb.js
@@ -3,6 +3,10 @@ var serializer = require('stream-serializer')
var inject = require('./inject')
-module.exports = inject(function (stream) {
+function wrap (stream) {
return serializer.json(stream, JSONB)
-})
+}
+
+module.exports = inject(wrap)
+
+module.exports.wrap = wrap

0 comments on commit 2670d73

Please sign in to comment.
Something went wrong with that request. Please try again.