1 | var tape = require('tape')
|
2 | var create = require('./helpers/create')
|
3 |
|
4 | tape('write and unlink', function (t) {
|
5 | var archive = create()
|
6 |
|
7 | archive.writeFile('/hello.txt', 'world', function (err) {
|
8 | t.error(err, 'no error')
|
9 | archive.unlink('/hello.txt', function (err) {
|
10 | t.error(err, 'no error')
|
11 | archive.readFile('/hello.txt', function (err) {
|
12 | t.ok(err, 'had error')
|
13 | t.end()
|
14 | })
|
15 | })
|
16 | })
|
17 | })
|