@@ -4,7 +4,7 @@ import { join } from 'path';
44
55const goodPath = join ( __dirname , 'fixtures' , 'good.rb' ) ;
66const badPath = join ( __dirname , 'fixtures' , 'bad.rb' ) ;
7- const lint = require ( '../lib/main.js' ) . provideLinter ( ) . lint ;
7+ const { lint } = require ( '../lib/main.js' ) . provideLinter ( ) ;
88
99describe ( 'The Ruby provider for Linter' , ( ) => {
1010 beforeEach ( ( ) => {
@@ -21,21 +21,16 @@ describe('The Ruby provider for Linter', () => {
2121 } ) ;
2222
2323 it ( 'should be in the packages list' , ( ) =>
24- expect ( atom . packages . isPackageLoaded ( 'linter-ruby' ) ) . toBe ( true ) ,
25- ) ;
24+ expect ( atom . packages . isPackageLoaded ( 'linter-ruby' ) ) . toBe ( true ) ) ;
2625
2726 it ( 'should be an active package' , ( ) =>
28- expect ( atom . packages . isPackageActive ( 'linter-ruby' ) ) . toBe ( true ) ,
29- ) ;
27+ expect ( atom . packages . isPackageActive ( 'linter-ruby' ) ) . toBe ( true ) ) ;
3028
3129 describe ( 'checks bad.rb and' , ( ) => {
3230 let editor = null ;
3331 beforeEach ( ( ) => {
3432 waitsForPromise ( ( ) =>
35- atom . workspace . open ( badPath ) . then (
36- ( openEditor ) => { editor = openEditor ; } ,
37- ) ,
38- ) ;
33+ atom . workspace . open ( badPath ) . then ( ( openEditor ) => { editor = openEditor ; } ) ) ;
3934 } ) ;
4035
4136 it ( 'verifies the messages are correct' , ( ) =>
@@ -54,9 +49,7 @@ describe('The Ruby provider for Linter', () => {
5449 expect ( messages [ 1 ] . text ) . toBe ( 'unexpected keyword_end, expecting end-of-input' ) ;
5550 expect ( messages [ 1 ] . filePath ) . toBe ( badPath ) ;
5651 expect ( messages [ 1 ] . range ) . toEqual ( [ [ 12 , 0 ] , [ 12 , 18 ] ] ) ;
57- } ) ,
58- ) ,
59- ) ;
52+ } ) ) ) ;
6053 } ) ;
6154
6255 describe ( 'checks good.rb and' , ( ) => {
@@ -65,9 +58,6 @@ describe('The Ruby provider for Linter', () => {
6558 atom . workspace . open ( goodPath ) . then ( editor =>
6659 lint ( editor ) . then ( ( messages ) => {
6760 expect ( messages . length ) . toBe ( 0 ) ;
68- } ) ,
69- ) ,
70- ) ,
71- ) ;
61+ } ) ) ) ) ;
7262 } ) ;
7363} ) ;
0 commit comments