mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-18 14:00:39 -07:00
fix: throws on invalid arguments for prepend/append, fixes #208
This commit is contained in:
@@ -7,6 +7,15 @@ const expect = chai.expect
|
||||
chai.use(sinonChai)
|
||||
|
||||
describe('util/underscore', function () {
|
||||
describe('.camel2snake()', function () {
|
||||
it('should convert camelCase to snakeCase', function () {
|
||||
expect(_.snakeCase('fooBarCoo')).to.equal('foo_bar_coo')
|
||||
})
|
||||
it('should convert empty string to empty string', function () {
|
||||
expect(_.snakeCase('')).to.equal('')
|
||||
})
|
||||
})
|
||||
|
||||
describe('.isString()', function () {
|
||||
it('should return true for literal string', function () {
|
||||
expect(_.isString('foo')).to.be.true
|
||||
|
||||
Reference in New Issue
Block a user