@sunamo/sunodejs
Version:
Node.js utilities for file system operations, process management, and Electron apps. Includes TypeScript support with functions for file operations, directory management, and cross-platform compatibility.
15 lines (14 loc) • 562 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const FS = tslib_1.__importStar(require("../FS"));
const path_1 = tslib_1.__importDefault(require("path"));
describe("FS module", () => {
it("should add slash to end of path if missing", () => {
const sep = path_1.default.sep;
const input = "C:" + sep + "test";
const expected = input + sep;
expect(FS.withEndSlash(input)).toBe(expected);
expect(FS.withEndSlash(input + sep)).toBe(input + sep);
});
});