@@ -579,7 +579,7 @@ namespace FourSlash {
579
579
this . raiseError ( `goToDefinitions failed - expected to find ${ endMarkers . length } definitions but got ${ definitions . length } ` ) ;
580
580
}
581
581
582
- ts . zip ( endMarkers , definitions , ( endMarker , definition , i ) => {
582
+ ts . zipWith ( endMarkers , definitions , ( endMarker , definition , i ) => {
583
583
const marker = this . getMarkerByName ( endMarker ) ;
584
584
if ( marker . fileName !== definition . fileName || marker . position !== definition . textSpan . start ) {
585
585
this . raiseError ( `goToDefinition failed for definition ${ i } : expected ${ marker . fileName } at ${ marker . position } , got ${ definition . fileName } at ${ definition . textSpan . start } ` ) ;
@@ -601,7 +601,7 @@ namespace FourSlash {
601
601
public verifyGetEmitOutputContentsForCurrentFile ( expected : ts . OutputFile [ ] ) : void {
602
602
const emit = this . languageService . getEmitOutput ( this . activeFile . fileName ) ;
603
603
assert . equal ( emit . outputFiles . length , expected . length , "Number of emit output files" ) ;
604
- ts . zip ( emit . outputFiles , expected , ( outputFile , expected ) => {
604
+ ts . zipWith ( emit . outputFiles , expected , ( outputFile , expected ) => {
605
605
assert . equal ( outputFile . name , expected . name , "FileName" ) ;
606
606
assert . equal ( outputFile . text , expected . text , "Content" ) ;
607
607
} ) ;
@@ -667,7 +667,7 @@ namespace FourSlash {
667
667
668
668
const entries = this . getCompletionListAtCaret ( ) . entries ;
669
669
assert . isTrue ( items . length <= entries . length , `Amount of expected items in completion list [ ${ items . length } ] is greater than actual number of items in list [ ${ entries . length } ]` ) ;
670
- ts . zip ( entries , items , ( entry , item ) => {
670
+ ts . zipWith ( entries , items , ( entry , item ) => {
671
671
assert . equal ( entry . name , item , `Unexpected item in completion list` ) ;
672
672
} ) ;
673
673
}
@@ -993,7 +993,7 @@ namespace FourSlash {
993
993
ranges = ranges . sort ( ( r1 , r2 ) => r1 . start - r2 . start ) ;
994
994
references = references . sort ( ( r1 , r2 ) => r1 . textSpan . start - r2 . textSpan . start ) ;
995
995
996
- ts . zip ( references , ranges , ( reference , range ) => {
996
+ ts . zipWith ( references , ranges , ( reference , range ) => {
997
997
if ( reference . textSpan . start !== range . start || ts . textSpanEnd ( reference . textSpan ) !== range . end ) {
998
998
this . raiseError ( "Rename location results do not match.\n\nExpected: " + stringify ( ranges ) + "\n\nActual:" + JSON . stringify ( references ) ) ;
999
999
}
@@ -1891,7 +1891,7 @@ namespace FourSlash {
1891
1891
jsonMismatchString ( ) ) ;
1892
1892
}
1893
1893
1894
- ts . zip ( expected , actual , ( expectedClassification , actualClassification ) => {
1894
+ ts . zipWith ( expected , actual , ( expectedClassification , actualClassification ) => {
1895
1895
const expectedType : string = ( < any > ts . ClassificationTypeNames ) [ expectedClassification . classificationType ] ;
1896
1896
if ( expectedType !== actualClassification . classificationType ) {
1897
1897
this . raiseError ( "verifyClassifications failed - expected classifications type to be " +
@@ -1966,7 +1966,7 @@ namespace FourSlash {
1966
1966
this . raiseError ( `verifyOutliningSpans failed - expected total spans to be ${ spans . length } , but was ${ actual . length } ` ) ;
1967
1967
}
1968
1968
1969
- ts . zip ( spans , actual , ( expectedSpan , actualSpan , i ) => {
1969
+ ts . zipWith ( spans , actual , ( expectedSpan , actualSpan , i ) => {
1970
1970
if ( expectedSpan . start !== actualSpan . textSpan . start || expectedSpan . end !== ts . textSpanEnd ( actualSpan . textSpan ) ) {
1971
1971
this . raiseError ( `verifyOutliningSpans failed - span ${ ( i + 1 ) } expected: (${ expectedSpan . start } ,${ expectedSpan . end } ), actual: (${ actualSpan . textSpan . start } ,${ ts . textSpanEnd ( actualSpan . textSpan ) } )` ) ;
1972
1972
}
@@ -1981,7 +1981,7 @@ namespace FourSlash {
1981
1981
this . raiseError ( `verifyTodoComments failed - expected total spans to be ${ spans . length } , but was ${ actual . length } ` ) ;
1982
1982
}
1983
1983
1984
- ts . zip ( spans , actual , ( expectedSpan , actualComment , i ) => {
1984
+ ts . zipWith ( spans , actual , ( expectedSpan , actualComment , i ) => {
1985
1985
const actualCommentSpan = ts . createTextSpan ( actualComment . position , actualComment . message . length ) ;
1986
1986
1987
1987
if ( expectedSpan . start !== actualCommentSpan . start || expectedSpan . end !== ts . textSpanEnd ( actualCommentSpan ) ) {
0 commit comments