Skip to content

Commit 9e6bef5

Browse files
committed
nvim: add context test
1 parent 8ef30c9 commit 9e6bef5

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

nvim/nvim_test.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,21 @@ func TestAPI(t *testing.T) {
594594
t.Fatal("expected minimal style")
595595
}
596596
})
597+
598+
t.Run("context", func(t *testing.T) {
599+
ctxt, err := v.Context(make(map[string][]string))
600+
if err != nil {
601+
t.Fatal(err)
602+
}
603+
604+
var result interface{}
605+
if err := v.LoadContext(ctxt, &result); err != nil {
606+
t.Fatal(err)
607+
}
608+
if result != nil {
609+
t.Fatal("expected result to nil")
610+
}
611+
})
597612
}
598613

599614
func TestDial(t *testing.T) {

0 commit comments

Comments
 (0)