Lines Matching refs:pwd
210 const pwd = os.userInfo(); constant
211 is.object(pwd);
215 assert.strictEqual(pwd.uid, -1);
216 assert.strictEqual(pwd.gid, -1);
217 assert.strictEqual(pwd.shell, null);
222 is.number(pwd.uid);
223 is.number(pwd.gid);
224 assert.strictEqual(typeof pwd.shell, 'string');
226 if (pwd.shell.length > 0) {
227 assert(pwd.shell.includes(path.sep));
229 assert.strictEqual(pwd.uid, pwdBuf.uid);
230 assert.strictEqual(pwd.gid, pwdBuf.gid);
231 assert.strictEqual(pwd.shell, pwdBuf.shell.toString('utf8'));
234 is.string(pwd.username);
235 assert.ok(pwd.homedir.includes(path.sep));
236 assert.strictEqual(pwd.username, pwdBuf.username.toString('utf8'));
237 assert.strictEqual(pwd.homedir, pwdBuf.homedir.toString('utf8'));