Skip to content

Commit

Permalink
🎉 Drop dependency on buffer-alloc
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusU committed Dec 7, 2019
1 parent 191c4eb commit 88e19f8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test/test.js
Expand Up @@ -8,7 +8,6 @@

const os = require('os')
const assert = require('assert')
const bufferAlloc = require('buffer-alloc')
const Speaker = require('../')

const endianness = os.endianness()
Expand Down Expand Up @@ -55,7 +54,7 @@ describe('Speaker', function () {
done()
})
assert.strictEqual(called, false)
s.write(bufferAlloc(0))
s.write(Buffer.alloc(0))
})

it('should emit a "flush" event after end()', function (done) {
Expand All @@ -66,7 +65,7 @@ describe('Speaker', function () {
done()
})
assert.strictEqual(called, false)
s.end(bufferAlloc(0))
s.end(Buffer.alloc(0))
})

it('should emit a "close" event after end()', function (done) {
Expand All @@ -78,7 +77,7 @@ describe('Speaker', function () {
done()
})
assert.strictEqual(called, false)
s.end(bufferAlloc(0))
s.end(Buffer.alloc(0))
})

it('should only emit one "close" event', function (done) {
Expand All @@ -101,7 +100,7 @@ describe('Speaker', function () {
assert.strictEqual(s.device, 'test')

s.on('close', done)
s.end(bufferAlloc(0))
s.end(Buffer.alloc(0))
})

it('should not throw an Error if native "endianness" is specified', function () {
Expand Down

0 comments on commit 88e19f8

Please sign in to comment.