diff options
author | Timmy Willison <timmywil@users.noreply.github.com> | 2024-03-29 09:13:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-29 09:13:46 -0400 |
commit | 91df20be6b488ac6cf4da291d7ee3aa5d6feac73 (patch) | |
tree | 56b5c4f8b96a8323e3a6ce9c02c3e84c85a9d6d5 /tests/runner/lib/buildTestUrl.js | |
parent | 802642c37323d5fc05bfa4cee90a900953f9a98d (diff) | |
download | jquery-ui-91df20be6b488ac6cf4da291d7ee3aa5d6feac73.tar.gz jquery-ui-91df20be6b488ac6cf4da291d7ee3aa5d6feac73.zip |
Tests: replace grunt-contrib-qunit with jQuery test runner
- add filestash workflow
Close gh-2221
Diffstat (limited to 'tests/runner/lib/buildTestUrl.js')
-rw-r--r-- | tests/runner/lib/buildTestUrl.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/runner/lib/buildTestUrl.js b/tests/runner/lib/buildTestUrl.js new file mode 100644 index 000000000..826548852 --- /dev/null +++ b/tests/runner/lib/buildTestUrl.js @@ -0,0 +1,21 @@ +export function buildTestUrl( suite, { jquery, migrate, port, reportId } ) { + if ( !port ) { + throw new Error( "No port specified." ); + } + + const query = new URLSearchParams(); + + if ( jquery ) { + query.append( "jquery", jquery ); + } + + if ( migrate ) { + query.append( "migrate", "true" ); + } + + if ( reportId ) { + query.append( "reportId", reportId ); + } + + return `http://localhost:${ port }/tests/unit/${ suite }/${ suite }.html?${ query }`; +} |