From 012ea99e09c46e644a10c424ac7c20e9bdda0df6 Mon Sep 17 00:00:00 2001 From: skjnldsv Date: Wed, 4 Dec 2024 13:14:25 +0100 Subject: [PATCH 1/2] chore: test chai failure - do not merge Signed-off-by: skjnldsv --- test/node/operations/stat.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/node/operations/stat.spec.ts b/test/node/operations/stat.spec.ts index 2583444..eb045c6 100644 --- a/test/node/operations/stat.spec.ts +++ b/test/node/operations/stat.spec.ts @@ -124,7 +124,7 @@ describe("stat", function () { this.client.stat("/1/", { details: true }).then(function (result) { expect(result.data).to.have.property("props").that.is.an("object"); expect(result.data.props) - .to.have.property("displayname") + .to.have.property("dispvdslayname") .that.is.a("string") .and.equal("1"); }); From 2e53a9ded5a751c6644d8f863d55c7598d04b166 Mon Sep 17 00:00:00 2001 From: Perry Mitchell Date: Fri, 6 Dec 2024 20:11:59 +0200 Subject: [PATCH 2/2] Fix stat test --- test/node/operations/stat.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/node/operations/stat.spec.ts b/test/node/operations/stat.spec.ts index eb045c6..a78bc03 100644 --- a/test/node/operations/stat.spec.ts +++ b/test/node/operations/stat.spec.ts @@ -114,17 +114,17 @@ describe("stat", function () { }); }); - it("correctly parses the displayname property", function () { + it("correctly parses the displayname property", async function () { returnFakeResponse( readFileSync( new URL("../../responses/propfind-numeric-displayname.xml", import.meta.url) ).toString() ); - this.client.stat("/1/", { details: true }).then(function (result) { + await this.client.stat("/1/", { details: true }).then(function (result) { expect(result.data).to.have.property("props").that.is.an("object"); expect(result.data.props) - .to.have.property("dispvdslayname") + .to.have.property("displayname") .that.is.a("string") .and.equal("1"); });