Lines Matching refs:pwd
219 const pwd = os.userInfo();
220 is.object(pwd);
224 assert.strictEqual(pwd.uid, -1);
225 assert.strictEqual(pwd.gid, -1);
226 assert.strictEqual(pwd.shell, null);
231 is.number(pwd.uid);
232 is.number(pwd.gid);
233 assert.strictEqual(typeof pwd.shell, 'string');
235 if (pwd.shell.length > 0) {
236 assert(pwd.shell.includes(path.sep));
238 assert.strictEqual(pwd.uid, pwdBuf.uid);
239 assert.strictEqual(pwd.gid, pwdBuf.gid);
240 assert.strictEqual(pwd.shell, pwdBuf.shell.toString('utf8'));
243 is.string(pwd.username);
244 assert.ok(pwd.homedir.includes(path.sep));
245 assert.strictEqual(pwd.username, pwdBuf.username.toString('utf8'));
246 assert.strictEqual(pwd.homedir, pwdBuf.homedir.toString('utf8'));