Skip to content

Commit

Permalink
Fix stat test
Browse files Browse the repository at this point in the history
  • Loading branch information
perry-mitchell committed Dec 6, 2024
1 parent 012ea99 commit 2e53a9d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/node/operations/stat.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
});
Expand Down

0 comments on commit 2e53a9d

Please sign in to comment.