Commit 9c7a2beba02414831d4a08c2de2021926e39c837
test values on object
Dominic Tarr committed on 8/29/2014, 10:28:56 PMParent: 581dda50841b6621af19182105a4351ce307c455
Files changed
test/values.js | added |
test/values.js | ||
---|---|---|
@@ -1,0 +1,27 @@ | ||
1 | + | |
2 | + | |
3 | +var pull = require('../') | |
4 | +var tape = require('tape') | |
5 | + | |
6 | +tape('values - array', function (t) { | |
7 | + pull( | |
8 | + pull.values([1,2,3]), | |
9 | + pull.collect(function (err, ary) { | |
10 | + t.notOk(err) | |
11 | + t.deepEqual(ary, [1, 2, 3]) | |
12 | + t.end() | |
13 | + }) | |
14 | + ) | |
15 | +}) | |
16 | + | |
17 | +tape('values - object', function (t) { | |
18 | + pull( | |
19 | + pull.values({a:1,b:2,c:3}), | |
20 | + pull.collect(function (err, ary) { | |
21 | + t.notOk(err) | |
22 | + t.deepEqual(ary, [1, 2, 3]) | |
23 | + t.end() | |
24 | + }) | |
25 | + ) | |
26 | + | |
27 | +}) |
Built with git-ssb-web