mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 04:10:40 -07:00
feat: rename to defaultOperators and Operators
This commit is contained in:
committed by
Jun Yang
parent
18055c8855
commit
8734e2e6ce
@@ -1,5 +1,5 @@
|
||||
import { expect } from 'chai'
|
||||
import { Liquid, Operators } from '../../../src/liquid'
|
||||
import { Liquid, defaultOperators } from '../../../src/liquid'
|
||||
|
||||
describe('LiquidOptions#operators', function () {
|
||||
let engine: Liquid
|
||||
@@ -7,7 +7,7 @@ describe('LiquidOptions#operators', function () {
|
||||
beforeEach(function () {
|
||||
engine = new Liquid({
|
||||
operators: {
|
||||
...Operators,
|
||||
...defaultOperators,
|
||||
isFooBar: (l, r) => l === 'foo' && r === 'bar'
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user