Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Commit 45e7f5f

Browse files
committed
Add tests that use a transform
1 parent 8970fdb commit 45e7f5f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@
2323
],
2424
"dependencies": {},
2525
"devDependencies": {
26-
"tape": "^4.0.0",
27-
"standard": "^4.0.0"
26+
"ap": "^0.2.0",
27+
"standard": "^4.0.0",
28+
"tape": "^4.0.0"
2829
},
2930
"files": [
3031
"index.js",

test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict'
22

33
var test = require('tape')
4+
var ap = require('ap')
45
var array = require('./')
56

67
test(function (t) {
@@ -12,5 +13,8 @@ test(function (t) {
1213
t.deepEqual(string('{"\\"\\"\\"","\\\\\\\\\\\\"}'), ['"""', '\\\\\\'], 'escaped')
1314
t.deepEqual(string('{NULL,NULL}'), [null, null], 'null')
1415

16+
var integer = ap.partialRight(array.parse, ap.partialRight(parseInt, 10))
17+
t.deepEqual(integer('{1,2,3}'), [1, 2, 3], 'numerics')
18+
1519
t.end()
1620
})

0 commit comments

Comments
 (0)