mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
TESTS: Integration tests for badge pages
This commit is contained in:
@ -1,5 +1,3 @@
|
||||
/* global console */
|
||||
|
||||
function parsePostData(query) {
|
||||
var result = {};
|
||||
query.split("&").forEach(function(part) {
|
||||
@ -60,7 +58,9 @@ export default function() {
|
||||
};
|
||||
|
||||
server.unhandledRequest = function(verb, path) {
|
||||
console.error('Unhandled request in test environment: ' + path + ' (' + verb + ')');
|
||||
var error = 'Unhandled request in test environment: ' + path + ' (' + verb + ')';
|
||||
window.console.error(error);
|
||||
throw error;
|
||||
};
|
||||
|
||||
return server;
|
||||
|
Reference in New Issue
Block a user