gmi-web/test.sh
Talon Poole 54280ba8d3 Use ES modules
use language for <html lang=""> too
2021-02-10 22:03:48 +00:00

11 lines
376 B
Bash
Executable file

rm -rf "example/test.html"
./cli.js --lang en --images --audio --video "example/*.gmi"
if cmp -s "example/test.html" "example/expected.html"; then
printf "PASS: test.html matches expected.html!\n"
else
printf "FAIL: test.html DOES NOT match expected.html!\n"
cmp "example/test.html" "example/expected.html"
diff "example/test.html" "example/expected.html"
exit 1
fi