Haha-Yes/node_modules/ref/test/isNull.js

17 lines
366 B
JavaScript
Raw Normal View History

2018-09-09 21:20:36 +02:00
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))
})
})