MCPcopy Create free account
hub / github.com/codecombat/codecombat / getDocumentSearchString

Function getDocumentSearchString

app/core/utils.js:822–823  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

820const userAgent = () => window.navigator.userAgent
821
822const getDocumentSearchString = () => // moved to a separate function so it can be mocked for testing
823 document.location.search
824
825const getQueryVariables = function () {
826 const query = module.exports.getDocumentSearchString().substring(1) // use module.exports so spy is used in testing

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected