Browse Source

:white_check_mark: Fixes duplicate/inaccurate test (#3520)

Eric Kwoka 2 năm trước cách đây
mục cha
commit
8d23398223
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      tests/cypress/integration/directives/x-bind.spec.js

+ 3 - 3
tests/cypress/integration/directives/x-bind.spec.js

@@ -391,8 +391,8 @@ test('x-bind object syntax event handlers defined as functions receive the event
         <script>
             window.data = () => { return {
                 button: {
-                    ['@click']() {
-                        this.$refs.span.innerText = this.$el.id
+                    ['@click'](event) {
+                        this.$refs.span.innerText = event.currentTarget.id
                     }
                 }
             }}
@@ -410,7 +410,7 @@ test('x-bind object syntax event handlers defined as functions receive the event
     }
 )
 
-test('x-bind object syntax event handlers defined as functions receive the event object as their first argument',
+test('x-bind object syntax event handlers defined as functions receive element bound magics',
     html`
         <script>
             window.data = () => { return {