Debian Codegraph @

fs2/test/lchmod.js

raw
1 "use strict";
2
3 var lstat = require("../lstat")
4 , testFile = require("path").resolve(__dirname, "__playground/lchmod/test");
5
6 module.exports = function (t, a, d) {
7 if (!require("fs").lchmod) {
8 a(t, null);
9 d();
10 return;
11 }
12 lstat(testFile)(function (stats) {
13 var org = stats.mode;
14 return t(testFile, 511)(function () {
15 return lstat(testFile)(function (stats2) {
16 // eslint-disable-next-line no-bitwise
17 a(stats2.mode & 511, 511);
18 return t(testFile, org);
19 });
20 });
21 }, a.never).done(d, d);
22 };