1
Fork 0

fix and update tests

This commit is contained in:
Conduitry 2018-11-07 06:45:20 -05:00
parent 25fe25ab71
commit fabd46b903
3 changed files with 4 additions and 5 deletions

View File

@ -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` },
])

View File

@ -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))
})

View File

@ -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` },
])