@@ -12,7 +12,7 @@ const somethingFile = path.join(__dirname, 'fixtures', 'something.js')
1212const packageJsonPath = fs . realpathSync ( `${ __dirname } /../package.json` )
1313
1414describe ( 'linter helpers' , function ( ) {
15- describe ( '::rangeFromLineNumber' , function ( ) {
15+ fdescribe ( '::rangeFromLineNumber' , function ( ) {
1616 it ( 'cries when invalid textEditor is passed' , ( ) =>
1717 expect ( ( ) =>
1818 helpers . rangeFromLineNumber ( )
@@ -23,18 +23,18 @@ describe('linter helpers', function () {
2323 waitsForAsync ( async function ( ) {
2424 await atom . workspace . open ( somethingFile )
2525 const textEditor = atom . workspace . getActiveTextEditor ( )
26- expect ( helpers . rangeFromLineNumber ( textEditor ) ) . toEqual ( [ [ 0 , 0 ] , [ 0 , 7 ] ] )
27- expect ( helpers . rangeFromLineNumber ( textEditor , - 1 ) ) . toEqual ( [ [ 0 , 0 ] , [ 0 , 7 ] ] )
28- expect ( helpers . rangeFromLineNumber ( textEditor , 'a' ) ) . toEqual ( [ [ 0 , 0 ] , [ 0 , 7 ] ] )
26+ expect ( helpers . rangeFromLineNumber ( textEditor ) ) . toEqual ( [ [ 0 , 0 ] , [ 0 , 30 ] ] )
27+ expect ( helpers . rangeFromLineNumber ( textEditor , - 1 ) ) . toEqual ( [ [ 0 , 0 ] , [ 0 , 30 ] ] )
28+ expect ( helpers . rangeFromLineNumber ( textEditor , 'a' ) ) . toEqual ( [ [ 0 , 0 ] , [ 0 , 30 ] ] )
2929 } )
3030 )
3131
3232 it ( 'ignores an invalid starting column' , ( ) =>
3333 waitsForAsync ( async function ( ) {
3434 await atom . workspace . open ( somethingFile )
3535 const textEditor = atom . workspace . getActiveTextEditor ( )
36- expect ( helpers . rangeFromLineNumber ( textEditor , 7 , - 1 ) ) . toEqual ( [ [ 7 , 0 ] , [ 7 , 2 ] ] )
37- expect ( helpers . rangeFromLineNumber ( textEditor , 7 , 'a' ) ) . toEqual ( [ [ 7 , 0 ] , [ 7 , 2 ] ] )
36+ expect ( helpers . rangeFromLineNumber ( textEditor , 7 , - 1 ) ) . toEqual ( [ [ 7 , 0 ] , [ 7 , 43 ] ] )
37+ expect ( helpers . rangeFromLineNumber ( textEditor , 7 , 'a' ) ) . toEqual ( [ [ 7 , 0 ] , [ 7 , 43 ] ] )
3838 } )
3939 )
4040
@@ -43,7 +43,7 @@ describe('linter helpers', function () {
4343 await atom . workspace . open ( somethingFile )
4444 const textEditor = atom . workspace . getActiveTextEditor ( )
4545 const range = helpers . rangeFromLineNumber ( textEditor , 7 )
46- expect ( range ) . toEqual ( [ [ 7 , 0 ] , [ 7 , 2 ] ] )
46+ expect ( range ) . toEqual ( [ [ 7 , 0 ] , [ 7 , 43 ] ] )
4747 } )
4848 )
4949
0 commit comments