Spaces:
Running
Running
Download node_modules/@soda/get-current-script/test.js from k-l-lambda/lotus: direct link, hf CLI and curl.
- Browser
- Download file 733 Bytes
-
https://huggingface.co/spaces/k-l-lambda/lotus/resolve/main/node_modules/%40soda/get-current-script/test.js
- Command line
-
hf download hf://spaces/k-l-lambda/lotus/node_modules/@soda/get-current-script/test.js
-
curl -L -o test.js https://huggingface.co/spaces/k-l-lambda/lotus/resolve/main/node_modules/%40soda/get-current-script/test.js
733 Bytes
| 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() | |
| } | |
| } | |