Add prettier and re-format .js files

This commit is contained in:
hensm
2021-08-31 07:59:58 +01:00
parent 9339b1a306
commit d6ca1325dc
38 changed files with 908 additions and 13254 deletions

View File

@@ -4,18 +4,18 @@
const socket = new WebSocket("ws://localhost:8080");
window.messageProxy = {
sendMessage (message) {
sendMessage(message) {
socket.send(JSON.stringify(message));
}
}
};
const reporterMethods = [
"jasmineDone"
, "jasmineStarted"
, "specDone"
, "specStarted"
, "suiteDone"
, "suiteStarted"
"jasmineDone",
"jasmineStarted",
"specDone",
"specStarted",
"suiteDone",
"suiteStarted"
];
const customReporter = {};
@@ -24,10 +24,10 @@ const customReporter = {};
for (const method of reporterMethods) {
customReporter[method] = function (result) {
messageProxy.sendMessage({
subject: method
, data: result
subject: method,
data: result
});
}
};
}
socket.addEventListener("open", ev => {