diff --git a/e2etests-cli/main_test.go b/e2etests-cli/main_test.go index e5b3e5852..a49fdd32c 100644 --- a/e2etests-cli/main_test.go +++ b/e2etests-cli/main_test.go @@ -33,7 +33,17 @@ func TestCLI_E2E(t *testing.T) { name: "hello_world_png_pad", run: func(t *testing.T, ctx context.Context, dir string, env *xos.Env) { writeFile(t, dir, "hello-world.d2", `x -> y`) - err := runTestMain(t, ctx, dir, env, "-pad 4000", "hello-world.d2", "hello-world.png") + err := runTestMain(t, ctx, dir, env, "--pad=400", "hello-world.d2", "hello-world.png") + assert.Success(t, err) + png := readFile(t, dir, "hello-world.png") + assert.Testdata(t, ".png", png) + }, + }, + { + name: "hello_world_png_sketch", + run: func(t *testing.T, ctx context.Context, dir string, env *xos.Env) { + writeFile(t, dir, "hello-world.d2", `x -> y`) + err := runTestMain(t, ctx, dir, env, "--sketch", "hello-world.d2", "hello-world.png") assert.Success(t, err) png := readFile(t, dir, "hello-world.png") assert.Testdata(t, ".png", png) diff --git a/e2etests-cli/testdata/TestCLI_E2E/hello_world_png_pad.exp.png b/e2etests-cli/testdata/TestCLI_E2E/hello_world_png_pad.exp.png index 613ca9a63..296288588 100644 Binary files a/e2etests-cli/testdata/TestCLI_E2E/hello_world_png_pad.exp.png and b/e2etests-cli/testdata/TestCLI_E2E/hello_world_png_pad.exp.png differ diff --git a/e2etests-cli/testdata/TestCLI_E2E/hello_world_png_sketch.exp.png b/e2etests-cli/testdata/TestCLI_E2E/hello_world_png_sketch.exp.png new file mode 100644 index 000000000..bef8fb071 Binary files /dev/null and b/e2etests-cli/testdata/TestCLI_E2E/hello_world_png_sketch.exp.png differ