1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-11-08 19:43:34 +00:00

Introduce multiwikiclient plugin

Routes are now rationalised, too.
This commit is contained in:
Jeremy Ruston
2024-03-20 15:13:50 +00:00
parent 38ee942d8f
commit 9b3ca525ee
45 changed files with 679 additions and 166 deletions

View File

@@ -113,14 +113,15 @@ TestRunner.prototype.runTest = function(testSpec,callback) {
const testSpecs = [
{
description: "Check server status",
description: "Check index page",
method: "GET",
path: "/wiki/recipe-alpha/status",
path: "/",
headers: {
accept: "*/*"
},
expectedResult: (jsonData,data) => {
return jsonData.username === "Joe Bloggs";
expectedResult: (jsonData,data,headers) => {
console.log(JSON.stringify(data).slice(1,100))
return JSON.stringify(data).slice(1,100) === "\\n<!doctype html>\\n<head>\\n\\t<meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html;charset=utf-8\\\" ";
}
},
{