mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 12:50:38 -07:00
chore(typescript): ship to TypeScript
This commit is contained in:
+4
-9
@@ -1,17 +1,12 @@
|
||||
const chai = require('chai')
|
||||
const expect = chai.expect
|
||||
const syntax = require('../../src/syntax.js')
|
||||
const Scope = require('../../src/scope.js')
|
||||
|
||||
const evalExp = syntax.evalExp
|
||||
const evalValue = syntax.evalValue
|
||||
const isTruthy = syntax.isTruthy
|
||||
import Scope from '../../src/scope'
|
||||
import { expect } from 'chai'
|
||||
import { evalExp, evalValue, isTruthy } from '../../src/syntax'
|
||||
|
||||
describe('expression', function () {
|
||||
let scope
|
||||
|
||||
beforeEach(function () {
|
||||
scope = Scope.factory({
|
||||
scope = new Scope({
|
||||
one: 1,
|
||||
two: 2,
|
||||
empty: '',
|
||||
|
||||
Reference in New Issue
Block a user