feat: nil/null/empty/blank literals, resolves #102

This commit is contained in:
harttle
2019-02-24 21:50:01 +08:00
parent 54b2adce12
commit 88c9e96392
19 changed files with 355 additions and 52 deletions
+3 -4
View File
@@ -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')
}