Skip to content

Commit

Permalink
test: fix test by exiting with :quit
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesmithgh committed Oct 1, 2024
1 parent 8cdc745 commit 82c1cc3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ describe('kitty-scrollback.nvim', function()
})
h.assert_screen_equals(
h.feed_kitty({
h.with_pause_seconds_before(h.send_without_newline([[a]])),
h.with_pause_seconds_before(h.send_without_newline([[a]]), 2),
h.send_without_newline(h.send_as_string([[
# example > --config ksb_example_highlight_overrides
Custom KittyScrollbackNvim highlight overrides
Expand Down Expand Up @@ -147,7 +147,7 @@ $🭼▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
h.feed_kitty({
h.send_without_newline([[VG]]),
h.with_pause_seconds_before(h.send_without_newline(h.esc())),
h.with_pause_seconds_before(h.send_without_newline(h.esc())),
h.with_pause_seconds_before([[:quit]]),
h.send_without_newline([[V15k]]),
h.send_without_newline(h.with_pause_seconds_before(nil, 2)),
}),
Expand Down Expand Up @@ -254,7 +254,7 @@ $🭼▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
h.feed_kitty({
h.send_without_newline([[VG]]),
h.with_pause_seconds_before(h.send_without_newline(h.esc())),
h.with_pause_seconds_before(h.send_without_newline(h.esc())),
h.with_pause_seconds_before([[:quit]]),
h.send_without_newline([[V15k]]),
h.send_without_newline(h.with_pause_seconds_before(nil, 2)),
}),
Expand Down
2 changes: 1 addition & 1 deletion tests/kitty-scrollback/kitty_scrollback_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ $
)
h.assert_screen_equals(
h.feed_kitty({
h.send_without_newline(h.esc()),
[[:quit]],
}),
{
stdout = [[
Expand Down

0 comments on commit 82c1cc3

Please sign in to comment.