mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
test(pack) buffer.length -> Buffer.byteLength
This commit is contained in:
parent
5fdf235ae2
commit
913ff1bd63
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ test('cloudcmd: rest: pack: tar: get', (t) => {
|
|||
get(`http://localhost:${port}/api/v1/pack/fixture/pack`)
|
||||
.then(_pullout)
|
||||
.then((pack) => {
|
||||
t.equal(fixture.tar.length, pack.length, 'should pack data');
|
||||
t.equal(Buffer.byteLength(fixture.tar), Buffer.byteLength(pack), 'should pack data');
|
||||
t.end();
|
||||
after();
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue