Преглед изворни кода

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 }
             },
         }
     }