We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18e93f5 commit 3a8350bCopy full SHA for 3a8350b
index.js
@@ -1,5 +1,5 @@
1
-module.exports = {
2
- import: function (data) {
3
- return 'Hello World'
4
- }
+module.exports = Jawn
+function Jawn () {}
+Jawn.prototype.import = function (data) {
+ return 'Hello World'
5
}
test/jawn.js
@@ -1,6 +1,6 @@
var test = require('tape')
-var jawn = require('../index')
+var Jawn = require('../index')
test('jawn import', function (t) {
- t.equal(jawn.import('some data'), 'Hello World')
+ t.equal(new Jawn().import('some data'), 'Hello World')
t.end()
6
})
0 commit comments