diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 86f8272..2082639 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,9 +15,8 @@ jobs: matrix: channel: - v0.9.5 - - v0.10.0 - - stable - # - nightly + - v0.10.2 + - nightly steps: - uses: actions/checkout@v2 diff --git a/tests/nvim-paredit/operator_motion_spec.lua b/tests/nvim-paredit/operator_motion_spec.lua index b6c7cab..19347c6 100644 --- a/tests/nvim-paredit/operator_motion_spec.lua +++ b/tests/nvim-paredit/operator_motion_spec.lua @@ -22,6 +22,7 @@ describe("motions with operator pending", function() content = " (b b)", cursor = { 1, 0 }, }) + vim.treesitter.get_parser(0):parse() feedkeys("d") expect({ content = "", @@ -36,7 +37,7 @@ describe("motions with operator pending", function() }) feedkeys("d") expect({ - content = {"(b b)"}, + content = { "(b b)" }, cursor = { 1, 0 }, }) end) @@ -48,7 +49,7 @@ describe("motions with operator pending", function() }) feedkeys("dg") expect({ - content = {"(a a)"}, + content = { "(a a)" }, cursor = { 1, 4 }, }) end) @@ -79,7 +80,7 @@ describe("motions with operator pending", function() it("should delete 2 forms within parent form and join up", function() prepare_buffer({ - content = {"[(a a) (b b) (c c)]"}, + content = { "[(a a) (b b) (c c)]" }, cursor = { 1, 1 }, }) feedkeys("2d") @@ -99,6 +100,7 @@ describe("motions with operator pending", function() content = { "", ";; comment", "(b b)" }, cursor = { 1, 0 }, }) + vim.treesitter.get_parser(0):parse() feedkeys("d") expect({ content = "",