This commit is contained in:
DelLevin-Home
2026-03-10 22:06:32 +08:00
commit a4a326401e
19281 changed files with 2255158 additions and 0 deletions

29
node_modules/@soda/get-current-script/test.js generated vendored Normal file
View File

@@ -0,0 +1,29 @@
module.exports = {
'getCurrentScript': function (browser) {
browser
.url(`${browser.launch_url}/fixtures/test.html`)
.assert.containsText(
'#app',
`${browser.launch_url}/fixtures/log-src.js`
)
.end()
},
'getCurrentScript in microtask': function (browser) {
browser
.url(`${browser.launch_url}/fixtures/test-microtask.html`)
.assert.containsText(
'#app',
`${browser.launch_url}/fixtures/log-src-in-microtask.js`
)
.end()
},
'use it as a polyfill': function (browser) {
browser
.url(`${browser.launch_url}/fixtures/test-polyfill.html`)
.assert.containsText(
'#app',
'It works!'
)
.end()
}
}