mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
test(pack) tar: put: file: pullout -> pullout string
This commit is contained in:
parent
b91054e783
commit
b39c7b2cf0
1 changed files with 2 additions and 2 deletions
|
|
@ -53,9 +53,9 @@ test('cloudcmd: rest: pack: tar: put: file', (t) => {
|
|||
const options = getPackOptions(port, name);
|
||||
|
||||
put(options)
|
||||
.then(_pullout)
|
||||
.then(warp(_pullout, 'string'))
|
||||
.then(() => {
|
||||
const file = fs.readFileSync(__dirname + '/../' + name);
|
||||
const file = fs.readFileSync(__dirname + '/../' + name, 'utf8');
|
||||
|
||||
fs.unlinkSync(`${__dirname}/../${name}`);
|
||||
t.equal(Buffer.byteLength(file), Buffer.byteLength(fixture.tar), 'should create archive');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue