We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7b10f5 commit 37ff9eaCopy full SHA for 37ff9ea
1 file changed
test/types.js
@@ -0,0 +1,16 @@
1
+var test = require('tape')
2
+var inject = require('../index.js')
3
+
4
+test('invalid first argument', function (t) {
5
+ t.plan(1)
6
+ t.throws(function () {
7
+ var result = inject({ is: 'object' }, 'try', 1)
8
+ })
9
+})
10
11
+test('invalid third argument', function (t) {
12
13
14
+ var result = inject('validstring', 'try', 'index')
15
16
0 commit comments