UNPKG
iposix
Version:
latest (4.2.0)
4.2.0
The missing POSIX system calls
github.com/ohmu/node-posix
ohmu/node-posix
iposix
/
test
/
unit
/
test-getegid.js
11 lines
(8 loc)
•
246 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
var
assert =
require
(
'assert'
), posix =
require
(
"../../lib/posix"
); assert.
throws
(
function
(
) { posix.
getegid
(
123
) },
/takes no arguments/
);
var
gid = posix.
getegid
();
console
.
log
(
"getegid: "
+ gid); assert.
equal
(gid, process.
getgid
());