Skip to content

Commit

Permalink
fix compiler errors in Buffer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Oct 12, 2022
1 parent e77a659 commit f6625a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/neovim/src/api/Buffer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ describe('Buffer API', () => {
it(
'removes last 2 lines',
withBuffer(['test', 'bar', 'foo', 'a', 'b'], async () => {
await nvim.buffer.remove(-3, -1);
await nvim.buffer.remove(-3, -1, false);
expect(await nvim.buffer.lines).toEqual(['test', 'bar', 'foo']);
})
);
Expand All @@ -396,7 +396,7 @@ describe('Buffer API', () => {
it(
'can clear the buffer',
withBuffer(['foo'], async () => {
await nvim.buffer.remove(0, -1);
await nvim.buffer.remove(0, -1, false);
// One empty line
expect(await nvim.buffer.length).toEqual(1);
expect(await nvim.buffer.lines).toEqual(['']);
Expand Down Expand Up @@ -488,7 +488,7 @@ describe('Buffer event updates', () => {
const bufferName = await buffer.name;
await buffer.insert(['test', 'foo'], 0);

const promise = new Promise(resolve => {
const promise = new Promise<void>(resolve => {
const unlisten = buffer.listen(
'lines',
async (currentBuffer, tick, start, end, data) => {
Expand Down

0 comments on commit f6625a6

Please sign in to comment.