UNPKG

@web4/bitdrive

Version:

Bitdrive is a secure, real time distributed file system

18 lines (15 loc) 430 B
var tape = require('tape') var create = require('./helpers/create') tape('write and unlink', function (t) { var archive = create() archive.writeFile('/hello.txt', 'world', function (err) { t.error(err, 'no error') archive.unlink('/hello.txt', function (err) { t.error(err, 'no error') archive.readFile('/hello.txt', function (err) { t.ok(err, 'had error') t.end() }) }) }) })