diff --git a/test/surface/concurrency.test.ts b/test/surface/concurrency.test.ts index 4c521ce..3118f78 100644 --- a/test/surface/concurrency.test.ts +++ b/test/surface/concurrency.test.ts @@ -164,9 +164,9 @@ if (process.env.SKIP_CONC) { "Content-Type": "text/n3", }, body: - "@prefix solid: ." + - "#patch a solid:InsertDeletePatch;" + - ` solid:inserts { ${triple} .}.`, + "@prefix solid: .\n" + + "<#patch> a solid:InsertDeletePatch;\n" + + ` solid:inserts { ${triple} .}.\n`, }); expectedRdf += `${triple}\n`; promises.push(promise); diff --git a/test/surface/create-non-container.test.ts b/test/surface/create-non-container.test.ts index c39e0d7..32d049a 100644 --- a/test/surface/create-non-container.test.ts +++ b/test/surface/create-non-container.test.ts @@ -195,9 +195,9 @@ describe("Create non-container", () => { "Content-Type": "text/n3", }, body: - "@prefix solid: ." + - "#patch a solid:InsertDeletePatch;" + - " solid:inserts { <#hello> <#linked> <#world> .}.", + "@prefix solid: .\n" + + "<#patch> a solid:InsertDeletePatch;\n" + + " solid:inserts { <#hello> <#linked> <#world> .}.\n", }); // console.log(result); await new Promise((resolve) => setTimeout(resolve, waittime)); @@ -357,9 +357,9 @@ describe("Create non-container", () => { "Content-Type": "text/n3", }, body: - "@prefix solid: ." + - "#patch a solid:InsertDeletePatch;" + - " solid:inserts { <#hello> <#linked> <#world> .}.", + "@prefix solid: .\n" + + "<#patch> a solid:InsertDeletePatch;\n" + + " solid:inserts { <#hello> <#linked> <#world> .}.\n", }); await new Promise((resolve) => setTimeout(resolve, 2000)); }); diff --git a/test/surface/update.test.ts b/test/surface/update.test.ts index 7bcadc6..662794c 100644 --- a/test/surface/update.test.ts +++ b/test/surface/update.test.ts @@ -251,9 +251,9 @@ describe("Update", () => { "Content-Type": "text/n3", }, body: - "@prefix solid: ." + - "#patch a solid:InsertDeletePatch;" + - " solid:inserts { <#that> a <#fact> . }.", + "@prefix solid: .\n" + + "<#patch> a solid:InsertDeletePatch;\n" + + " solid:inserts { <#that> a <#fact> . }.\n", }); await new Promise((resolve) => setTimeout(resolve, waittime)); }); @@ -316,10 +316,10 @@ describe("Update", () => { "Content-Type": "text/n3", }, body: - "@prefix solid: ." + - "#patch a solid:InsertDeletePatch;" + - " solid:deletes { <#hello> <#linked> <#world> .}." + - " solid:inserts { <#hello> <#linked> <#world> .}.", + "@prefix solid: .\n" + + "<#patch> a solid:InsertDeletePatch;\n" + + " solid:deletes { <#hello> <#linked> <#world> .};\n" + + " solid:inserts { <#hello> <#linked> <#world> .}.\n", }); await new Promise((resolve) => setTimeout(resolve, waittime)); }); @@ -382,10 +382,10 @@ describe("Update", () => { "Content-Type": "text/n3", }, body: - "@prefix solid: ." + - "#patch a solid:InsertDeletePatch;" + - " solid:deletes { <#hello> <#linked> <#world> .}." + - " solid:inserts { <#that> a <#fact> .}.", + "@prefix solid: .\n" + + "<#patch> a solid:InsertDeletePatch;\n" + + " solid:deletes { <#hello> <#linked> <#world> .};\n" + + " solid:inserts { <#that> a <#fact> .}.\n", }); await new Promise((resolve) => setTimeout(resolve, waittime)); }); @@ -448,10 +448,10 @@ describe("Update", () => { "Content-Type": "text/n3", }, body: - "@prefix solid: ." + - "#patch a solid:InsertDeletePatch;" + - " solid:deletes { <#something> <#completely> <#different> .}." + - " solid:inserts { <#that> a <#fact> .}.", + "@prefix solid: .\n" + + "<#patch> a solid:InsertDeletePatch;\n" + + " solid:deletes { <#something> <#completely> <#different> .};\n" + + " solid:inserts { <#that> a <#fact> .}.\n", }); }); @@ -516,9 +516,9 @@ describe("Update", () => { "Content-Type": "text/n3", }, body: - "@prefix solid: ." + - "#patch a solid:InsertDeletePatch;" + - " solid:deletes { <#hello> <#linked> <#world> .}.", + "@prefix solid: .\n" + + "<#patch> a solid:InsertDeletePatch;\n" + + " solid:deletes { <#hello> <#linked> <#world> .}.\n", }); }); @@ -573,9 +573,9 @@ describe("Update", () => { "Content-Type": "text/n3", }, body: - "@prefix solid: ." + - "#patch a solid:InsertDeletePatch;" + - " solid:deletes { <#something> <#completely> <#different> .}.", + "@prefix solid: .\n" + + "<#patch> a solid:InsertDeletePatch;\n" + + " solid:deletes { <#something> <#completely> <#different> .}.\n", }); });