Skip to content

Commit 357f0ca

Browse files
committed
[Tests] node 25 removed SlowBuffer
1 parent faee620 commit 357f0ca

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

test/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@ test('buffer returns buffer', function (t) {
1515

1616
t.deepEqual(result, new Buffer('hi'));
1717
t.ok(result instanceof Buffer, 'is a Buffer');
18-
t.notOk(result instanceof SlowBuffer, 'not a SlowBuffer');
18+
if (SlowBuffer) {
19+
t.notOk(result instanceof SlowBuffer, 'not a SlowBuffer');
20+
}
1921

2022
t.end();
2123
});
2224

23-
test('SlowBuffer returns Buffer', { skip: SlowBuffer.name === 'deprecated' }, function (t) {
25+
test('SlowBuffer returns Buffer', { skip: !SlowBuffer || SlowBuffer.name === 'deprecated' }, function (t) {
2426
var slow = new SlowBuffer(2);
2527
slow[0] = 7;
2628
slow[1] = 8;

0 commit comments

Comments
 (0)