This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function getQueryParameters() { | |
| var parameters = {}; | |
| location.search.replace(/([^?=&]+)=([^&]*)/g, function(parameter, key, value) { | |
| parameters[decodeURIComponent(key)] = decodeURIComponent(value); | |
| return parameter; | |
| }); | |
| return parameters; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| name - test name to log | |
| actual - a primitive type or an object you get | |
| expected - a primitive type or an object you expected to get | |
| epsilon - math calculation error | |
| key - serves some internal purposes, do not touch this | |
| */ |