mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-18 05:50:43 -07:00
feat: nil/null/empty/blank literals, resolves #102
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
import * as chai from 'chai'
|
||||
import Scope from 'src/scope/scope'
|
||||
import IContext from 'src/scope/icontext'
|
||||
import Scope, { Context } from 'src/scope/scope'
|
||||
|
||||
const expect = chai.expect
|
||||
|
||||
describe('scope', function () {
|
||||
let scope: Scope, ctx: IContext
|
||||
let scope: Scope, ctx: Context
|
||||
beforeEach(function () {
|
||||
ctx = {
|
||||
foo: 'zoo',
|
||||
@@ -64,7 +63,7 @@ describe('scope', function () {
|
||||
expect(scope.get('foo')).equal('zoo')
|
||||
})
|
||||
|
||||
it('should get undefined property', function () {
|
||||
it('undefined property should yield undefined', function () {
|
||||
function fn () {
|
||||
scope.get('notdefined')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user