out-of-your-element/d2m/converters/pins-to-list.test.js

13 lines
413 B
JavaScript
Raw Normal View History

2023-10-10 04:41:53 +00:00
const {test} = require("supertape")
const data = require("../../test/data")
const {pinsToList} = require("./pins-to-list")
test("pins2list: converts known IDs, ignores unknown IDs", t => {
const result = pinsToList(data.pins.faked)
t.deepEqual(result, [
2024-01-16 03:02:31 +00:00
"$lnAF9IosAECTnlv9p2e18FG8rHn-JgYKHEHIh5qdFv4",
"$mtR8cJqM4fKno1bVsm8F4wUVqSntt2sq6jav1lyavuA",
2024-01-16 03:02:31 +00:00
"$X16nfVks1wsrhq4E9SSLiqrf2N8KD0erD0scZG7U5xg"
2023-10-10 04:41:53 +00:00
])
})