mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-17 05:10:40 -07:00
18 lines
580 B
JavaScript
18 lines
580 B
JavaScript
const chai = require("chai");
|
|
const expect = chai.expect;
|
|
const _ = require('../../src/util/underscore.js');
|
|
|
|
describe('util/underscore', function() {
|
|
describe('.isString()', function(){
|
|
it('should return true for literal string', function(){
|
|
expect(_.isString('foo')).to.be.true;
|
|
});
|
|
it('should return true String instance', function(){
|
|
expect(_.isString(new String('foo'))).to.be.true;
|
|
});
|
|
it('should return false for 123 ', function(){
|
|
expect(_.isString(123)).to.be.false;
|
|
});
|
|
});
|
|
});
|