File tree Expand file tree Collapse file tree 1 file changed +9
-14
lines changed
packages/neovim/src/attach Expand file tree Collapse file tree 1 file changed +9
-14
lines changed Original file line number Diff line number Diff line change @@ -38,21 +38,16 @@ describe('Nvim API', () => {
38
38
}
39
39
40
40
beforeAll ( async ( ) => {
41
- try {
42
- proc = startNvim ( ) ;
41
+ proc = startNvim ( ) ;
43
42
44
- nvim = attach ( { proc } ) ;
45
- nvim . on ( 'request' , ( method , args , resp ) => {
46
- requests . push ( { method, args } ) ;
47
- resp . send ( `received ${ method } (${ args } )` ) ;
48
- } ) ;
49
- nvim . on ( 'notification' , ( method , args ) => {
50
- notifications . push ( { method, args } ) ;
51
- } ) ;
52
- } catch ( err ) {
53
- // eslint-disable-next-line no-console
54
- console . log ( err ) ;
55
- }
43
+ nvim = attach ( { proc } ) ;
44
+ nvim . on ( 'request' , ( method , args , resp ) => {
45
+ requests . push ( { method, args } ) ;
46
+ resp . send ( `received ${ method } (${ args } )` ) ;
47
+ } ) ;
48
+ nvim . on ( 'notification' , ( method , args ) => {
49
+ notifications . push ( { method, args } ) ;
50
+ } ) ;
56
51
} ) ;
57
52
58
53
afterAll ( ( ) => {
You can’t perform that action at this time.
0 commit comments