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:
Jun Yang
2022-11-27 14:04:00 +08:00
parent 907c4dea06
commit ff112a4750
38 changed files with 119 additions and 125 deletions
-9
View File
@@ -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