bfj 9.1.0 → 9.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/HISTORY.md +6 -0
- package/package.json +1 -1
- package/src/streamify.js +1 -0
- package/test/integration.js +22 -0
package/HISTORY.md
CHANGED
package/package.json
CHANGED
package/src/streamify.js
CHANGED
package/test/integration.js
CHANGED
|
@@ -423,6 +423,28 @@ suite('integration:', () => {
|
|
|
423
423
|
})
|
|
424
424
|
})
|
|
425
425
|
|
|
426
|
+
// https://gitlab.com/philbooth/bfj/-/issues/72
|
|
427
|
+
suite('issue #72:', () => {
|
|
428
|
+
let result
|
|
429
|
+
|
|
430
|
+
setup(async () => {
|
|
431
|
+
result = await bfj.stringify([
|
|
432
|
+
{
|
|
433
|
+
foo: 'bar',
|
|
434
|
+
wibble: 'blee',
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
foo: 'bar',
|
|
438
|
+
wibble: 'blee',
|
|
439
|
+
},
|
|
440
|
+
])
|
|
441
|
+
})
|
|
442
|
+
|
|
443
|
+
test('result was correct', () => {
|
|
444
|
+
assert.strictEqual(result, '[{"foo":"bar","wibble":"blee"},{"foo":"bar","wibble":"blee"}]')
|
|
445
|
+
})
|
|
446
|
+
})
|
|
447
|
+
|
|
426
448
|
suite('write object:', () => {
|
|
427
449
|
let failed, file, result
|
|
428
450
|
|