mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 04:10:40 -07:00
perf: add cross-engines benchmark
This commit is contained in:
@@ -9,9 +9,6 @@ describe('filters/string', function () {
|
||||
it('should return "-3abc" for -3, "abc"',
|
||||
() => test('{{ -3 | append: "abc" }}', '-3abc'))
|
||||
it('should return "abar" for "a", foo', () => test('{{ "a" | append: foo }}', { foo: 'bar' }, 'abar'))
|
||||
it('should throw if second argument undefined', () => {
|
||||
return expect(test('{{ "abc" | append: undefinedVar }}', 'abc')).to.be.rejectedWith(/2 arguments/)
|
||||
})
|
||||
it('should throw if second argument not set', () => {
|
||||
return expect(test('{{ "abc" | append }}', 'abc')).to.be.rejectedWith(/2 arguments/)
|
||||
})
|
||||
@@ -21,9 +18,6 @@ describe('filters/string', function () {
|
||||
it('should return "-3abc" for -3, "abc"',
|
||||
() => test('{{ -3 | prepend: "abc" }}', 'abc-3'))
|
||||
it('should return "abar" for "a", foo', () => test('{{ "a" | prepend: foo }}', { foo: 'bar' }, 'bara'))
|
||||
it('should throw if second argument undefined', () => {
|
||||
return expect(test('{{ "abc" | prepend: undefinedVar }}', 'abc')).to.be.rejectedWith(/2 arguments/)
|
||||
})
|
||||
it('should throw if second argument not set', () => {
|
||||
return expect(test('{{ "abc" | prepend }}', 'abc')).to.be.rejectedWith(/2 arguments/)
|
||||
})
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
--require ts-node/register/transpile-only --strict false
|
||||
Reference in New Issue
Block a user