Skip to content

Commit fc14b1f

Browse files
enable fetch in test
1 parent d40caae commit fc14b1f

File tree

1 file changed

+8
-0
lines changed
  • test/e2e/general-usecase

1 file changed

+8
-0
lines changed

test/e2e/general-usecase/app.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,14 @@ req.onerror = function (err) {
8484
}
8585
req.send()
8686

87+
if ('fetch' in window) {
88+
fetch('http://localhost:8002/fetch', { method: 'POST' }).then(function (response) {
89+
response.json().then(function (payload) {
90+
checkDtInfo(payload)
91+
})
92+
})
93+
}
94+
8795
generateError.tmp = 'tmp'
8896

8997
var appEl = document.getElementById('app')

0 commit comments

Comments
 (0)