Просмотр исходного кода

fix failing test (JS syntax issue)

Hugo Di Francesco 5 лет назад
Родитель
Сommit
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 }
             },
         }
     }