first commit
This commit is contained in:
29
app_vue/node_modules/@soda/get-current-script/test.js
generated
vendored
Normal file
29
app_vue/node_modules/@soda/get-current-script/test.js
generated
vendored
Normal 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()
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user