web 3d图形渲染器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
844 B

  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. const assert = require("assert");
  4. const fs_macchiato_1 = require("../../../fs.macchiato");
  5. const util = require("./fs");
  6. describe('Utils → FS', () => {
  7. describe('.createDirentFromStats', () => {
  8. it('should convert fs.Stats to fs.Dirent', () => {
  9. const actual = util.createDirentFromStats('name', new fs_macchiato_1.Stats());
  10. assert.strictEqual(actual.name, 'name');
  11. assert.ok(!actual.isBlockDevice());
  12. assert.ok(!actual.isCharacterDevice());
  13. assert.ok(!actual.isDirectory());
  14. assert.ok(!actual.isFIFO());
  15. assert.ok(actual.isFile());
  16. assert.ok(!actual.isSocket());
  17. assert.ok(!actual.isSymbolicLink());
  18. });
  19. });
  20. });