UNPKG

shamjs

Version:
29 lines (27 loc) 768 B
var expect = require('expect.js') var sham = require('../../lib/index') describe('query/full.js', function () { it('full(content, target)', function () { expect( sham.query.full("abcdef", "abcdef") ).to.be.ok() expect( sham.query.full("abcdef", "abcd") ).to.not.be.ok() expect( sham.query.full("123456", 123456) ).to.be.ok() expect( sham.query.full("123456", 12345) ).to.not.be.ok() expect( sham.query.full(undefined, 'undefined') ).to.not.be.ok() expect( sham.query.full("123456", undefined) ).to.be.ok() expect( sham.query.full("123456", '') ).to.be.ok() }) })