diff options
Diffstat (limited to 'tests/runner_spec.lua')
-rw-r--r-- | tests/runner_spec.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/runner_spec.lua b/tests/runner_spec.lua index 0c45117..8c0dadf 100644 --- a/tests/runner_spec.lua +++ b/tests/runner_spec.lua @@ -343,6 +343,11 @@ print("a") assert.are.same(lines, vim.api.nvim_buf_get_lines(0, 0, -1, false)) end) + it("does not change output if dry_run is true", function() + run_formatter("hello", "foo", { dry_run = true }) + assert.are.same({ "hello" }, vim.api.nvim_buf_get_lines(0, 0, -1, false)) + end) + describe("range formatting", function() it("applies edits that overlap the range start", function() run_formatter( |