mirror of
https://github.com/joelwmale/webhook-action.git
synced 2024-11-26 09:25:24 +01:00
20 lines
844 B
JavaScript
20 lines
844 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const assert = require("assert");
|
|
const fs_macchiato_1 = require("../../../fs.macchiato");
|
|
const util = require("./fs");
|
|
describe('Utils → FS', () => {
|
|
describe('.createDirentFromStats', () => {
|
|
it('should convert fs.Stats to fs.Dirent', () => {
|
|
const actual = util.createDirentFromStats('name', new fs_macchiato_1.Stats());
|
|
assert.strictEqual(actual.name, 'name');
|
|
assert.ok(!actual.isBlockDevice());
|
|
assert.ok(!actual.isCharacterDevice());
|
|
assert.ok(!actual.isDirectory());
|
|
assert.ok(!actual.isFIFO());
|
|
assert.ok(actual.isFile());
|
|
assert.ok(!actual.isSocket());
|
|
assert.ok(!actual.isSymbolicLink());
|
|
});
|
|
});
|
|
});
|