Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/bytecodealliance/ComponentizeJS
/ test
Function
test
test/builtins/crypto-random.js:11–18 ·
view source on GitHub ↗
(run)
Source
from the content-addressed store, hash-verified
9
`;
10
11
export
async
function
test(run) {
12
const
{ stdout, stderr } =
await
run();
13
strictEqual(stderr,
''
);
14
const
randoms = stdout.split(
'\n'
);
15
for
(
let
i = 0; i < 10; i++) {
16
ok(Number(randoms[i]) > 0);
17
}
18
}
Callers
nothing calls this directly
Calls
1
run
Function · 0.50
Tested by
no test coverage detected