perf: use polymophism instead duck test

This commit is contained in:
harttle
2019-03-25 20:11:23 +08:00
parent 64dd057552
commit 82d7673554
18 changed files with 120 additions and 98 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import { Scope } from '../../../src/context/scope'
const expect = chai.expect
describe('scope', function () {
let ctx: Context, scope: Scope
let ctx: any, scope: Scope
beforeEach(function () {
scope = {
foo: 'zoo',