mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 12:50:38 -07:00
refactor: use camelCase for JavaScript APIs
BREAKING CHANGE: Options and method names in JavaScript API are now renamed to cammelCase, for a complete list see #109
This commit is contained in:
@@ -85,15 +85,6 @@ describe('scope', function () {
|
||||
it("should throw when '' unbalanced", async function () {
|
||||
expect(scope.get("foo['bar]")).to.be.rejectedWith(/unbalanced '/)
|
||||
})
|
||||
|
||||
it('should respect to to_liquid', async function () {
|
||||
const scope = new Scope({ foo: {
|
||||
to_liquid: () => ({ bar: 'BAR' }),
|
||||
bar: 'bar'
|
||||
} })
|
||||
expect(await scope.get('foo.bar')).to.equal('BAR')
|
||||
})
|
||||
|
||||
it('should respect to toLiquid', async function () {
|
||||
const scope = new Scope({ foo: {
|
||||
toLiquid: () => ({ bar: 'BAR' }),
|
||||
|
||||
Reference in New Issue
Block a user