mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-23 22:33:17 +00:00
17 lines
366 B
JavaScript
17 lines
366 B
JavaScript
|
|
||
|
var assert = require('assert')
|
||
|
var ref = require('../')
|
||
|
|
||
|
describe('isNull', function () {
|
||
|
|
||
|
it('should return "true" for the NULL pointer', function () {
|
||
|
assert.strictEqual(true, ref.isNull(ref.NULL))
|
||
|
})
|
||
|
|
||
|
it('should return "false" for a valid Buffer', function () {
|
||
|
var buf = new Buffer('hello')
|
||
|
assert.strictEqual(false, ref.isNull(buf))
|
||
|
})
|
||
|
|
||
|
})
|