UNPKG

@revoloo/cypress6

Version:

Cypress.io end to end testing tool

15 lines (11 loc) 284 B
// TODO: move this into lib/util/uri.js const url = require('url') module.exports = function (urlStr) { const parsed = url.parse(urlStr) parsed.hash = null parsed.search = null parsed.query = null parsed.path = null parsed.pathname = null return url.format(parsed) }