fix and update tests

Cette révision appartient à :
Conduitry 2018-11-07 06:45:20 -05:00
Parent 25fe25ab71
révision fabd46b903
3 fichiers modifiés avec 4 ajouts et 5 suppressions

Voir le fichier

@ -2,7 +2,7 @@ const test = require(`zora`)
const doNotZip = require(`../`)
test(`Creates a Blob in the browser`, t => {
const outputBlob = doNotZip([
const outputBlob = doNotZip.toAuto([
{ path: `path/to/file1.txt`, data: `Hello` },
{ path: `another/file2.txt`, data: `World` },
])

Voir le fichier

@ -3,7 +3,7 @@ const doNotZip = require(`../`)
const { loadJzip, jzipToEntries, entriesToObject } = require(`./helper.js`)
test(`Creates a zip file that jszip can read`, async t => {
const outputBlob = doNotZip([
const outputBlob = doNotZip.toAuto([
{ path: `path/to/file1.txt`, data: `Hello` },
{ path: `another/file2.txt`, data: `World` },
])
@ -15,6 +15,5 @@ test(`Creates a zip file that jszip can read`, async t => {
const jzipMap = entriesToObject(entries)
expectedPaths.forEach(expectedPath => expectedPath in jzipMap)
expectedPaths.forEach(expectedPath => t.ok(expectedPath in jzipMap))
})

Voir le fichier

@ -2,7 +2,7 @@ const test = require(`zora`)
const doNotZip = require(`../`)
test(`Creates a Buffer in node`, t => {
const outputBlob = doNotZip([
const outputBlob = doNotZip.toAuto([
{ path: `path/to/file1.txt`, data: `Hello` },
{ path: `another/file2.txt`, data: `World` },
])