forked from Supositware/Haha-Yes
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
366 B
JavaScript
17 lines
366 B
JavaScript
6 years ago
|
|
||
|
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))
|
||
|
})
|
||
|
|
||
|
})
|