console: add modules test

Signed-off-by: tmelhao <tmelhao@gmail.com>
This commit is contained in:
tmelhao 2024-03-07 02:29:01 +00:00
parent 46bef1c4bf
commit 919ac995b2

View file

@ -172,6 +172,9 @@ func TestWelcome(t *testing.T) {
if want := fmt.Sprintf("datadir: %s", tester.workspace); !strings.Contains(output, want) { if want := fmt.Sprintf("datadir: %s", tester.workspace); !strings.Contains(output, want) {
t.Fatalf("console output missing datadir: have\n%s\nwant also %s", output, want) t.Fatalf("console output missing datadir: have\n%s\nwant also %s", output, want)
} }
if want := "modules: "; !strings.Contains(output, want) {
t.Fatalf("console output missing modules: have\n%s\nwant also %s", output, want)
}
} }
// Tests that JavaScript statement evaluation works as intended. // Tests that JavaScript statement evaluation works as intended.