nixpkgs/pkgs/development/interpreters/spidermonkey/test.nix
2022-08-10 23:33:20 +02:00

11 lines
229 B
Nix

{ runCommand, spidermonkey }:
runCommand "spidermonkey-test-run" {
nativeBuildInputs = [
spidermonkey
];
} ''
diff -U3 --color=auto <(js <(echo "console.log('Hello, world\!')")) <(echo 'Hello, world!')
touch $out
''