瀏覽代碼

fix failing test (JS syntax issue)

Hugo Di Francesco 5 年之前
父節點
當前提交
7a4623b610
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      test/bind.spec.js

+ 2 - 2
test/bind.spec.js

@@ -449,10 +449,10 @@ test('can bind an object of directives', async () => {
         return {
             show: false,
             trigger: {
-                '@click'() { this.show = ! this.show }
+                '@click': function () { this.show = ! this.show }
             },
             dialogue: {
-                'x-show'() { return this.show }
+                ['x-show']() { return this.show }
             },
         }
     }