mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 12:50:38 -07:00
chore: rename filters to snake style, #487
BREAKING CHANGE: keys in `<liquidjs>.filters` are now in snake case (instead of camel case), identical to that in Liquid template.
This commit is contained in:
@@ -7,15 +7,6 @@ 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