Explorar o código

fix failing test (JS syntax issue)

Hugo Di Francesco %!s(int64=5) %!d(string=hai) anos
pai
achega
7a4623b610
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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 }
             },
         }
     }