Skip to content

Commit 168bd66

Browse files
committed
nvim: fix testcase
Signed-off-by: Koichi Shiraishi <[email protected]>
1 parent aeeaef9 commit 168bd66

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

nvim/api_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2099,7 +2099,7 @@ func testCommand(v *Nvim) func(*testing.T) {
20992099
t.Run(path.Join(name, "Nvim"), func(t *testing.T) {
21002100
skipVersion(t, "v0.7.0")
21012101

2102-
if err := v.AddUserCommand(tt.name, tt.command, tt.opts); err != nil {
2102+
if err := v.CreateUserCommand(tt.name, tt.command, tt.opts); err != nil {
21032103
t.Fatal(err)
21042104
}
21052105
t.Cleanup(func() {
@@ -2122,7 +2122,7 @@ func testCommand(v *Nvim) func(*testing.T) {
21222122

21232123
b := v.NewBatch()
21242124

2125-
b.AddUserCommand(tt.name, tt.command, tt.opts)
2125+
b.CreateUserCommand(tt.name, tt.command, tt.opts)
21262126
if err := b.Execute(); err != nil {
21272127
t.Fatal(err)
21282128
}
@@ -2165,7 +2165,7 @@ func testCommand(v *Nvim) func(*testing.T) {
21652165
t.Run(path.Join(name, "Nvim"), func(t *testing.T) {
21662166
skipVersion(t, "v0.7.0")
21672167

2168-
if err := v.AddBufferUserCommand(Buffer(0), tt.name, tt.command, tt.opts); err != nil {
2168+
if err := v.CreateBufferUserCommand(Buffer(0), tt.name, tt.command, tt.opts); err != nil {
21692169
t.Fatal(err)
21702170
}
21712171
t.Cleanup(func() {
@@ -2188,7 +2188,7 @@ func testCommand(v *Nvim) func(*testing.T) {
21882188

21892189
b := v.NewBatch()
21902190

2191-
b.AddBufferUserCommand(Buffer(0), tt.name, tt.command, tt.opts)
2191+
b.CreateBufferUserCommand(Buffer(0), tt.name, tt.command, tt.opts)
21922192
if err := b.Execute(); err != nil {
21932193
t.Fatal(err)
21942194
}

0 commit comments

Comments
 (0)