UNPKG
rabbit-posix
Version:
latest (0.0.9)
0.0.9
The missing POSIX system calls
github.com/Rabbit-Inc/node-posix.git
Rabbit-Inc/node-posix
rabbit-posix
/
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
());