Skip to content

Commit

Permalink
fixup! feat!: improve file client implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Nov 28, 2023
1 parent db0d80b commit d3ebf1a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/binding-file/test/file-client-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import FileClient from "../src/file-client";
import { Form } from "@node-wot/td-tools";
import { expect } from "chai";
import { unlink } from "fs";
import { fileURLToPath } from "node:url";

describe("File Client Implementation", () => {
let fileClient: FileClient;
Expand All @@ -38,9 +39,8 @@ describe("File Client Implementation", () => {
const fileName = "test.json";

// eslint-disable-next-line n/no-path-concat
const filePath = `${__dirname}/${fileName}`;

const href = uriScheme + filePath;
const href = `${uriScheme}${__dirname}/${fileName}`;
const filePath = fileURLToPath(href);

const form: Form = {
href,
Expand All @@ -65,7 +65,7 @@ describe("File Client Implementation", () => {
const readValue = ContentSerdes.get().contentToValue(readContent, {});
expect(readValue).to.deep.eq(originalValue);

// unlink(filePath, () => {});
unlink(filePath, () => {});
});
}
});

0 comments on commit d3ebf1a

Please sign in to comment.