Browse Source

Add comment

Caleb Porzio 5 năm trước cách đây
mục cha
commit
1cfb1ba66a
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      test/on.spec.js

+ 3 - 0
test/on.spec.js

@@ -431,6 +431,9 @@ test('event with colon', async () => {
 })
 
 test.skip('prevent default action when an event returns false', async () => {
+    // This test is skipped because in a browser this works, but it won't
+    // pass in this tests unless we bypass the promise resolving system
+    // for the result of an event handler expression.
     window.confirm = jest.fn().mockReturnValue(false)
 
     document.body.innerHTML = `