@@ -71,7 +71,7 @@ describe('Merging interface declarations', () => {
71
71
let regex = / \s * i n t e r f a c e \s + [ a b ] \s * \{ \} \s * i n t e r f a c e \s + [ a b ] .* / ;
72
72
expect ( regex . test ( result . toString ( ) ) ) . true ;
73
73
} ) ;
74
- it ( 'should be accumulated with patchOverride (should not make a difference).' , ( ) => {
74
+ it ( 'should be accumulated with patchOverride (should not make any difference).' , ( ) => {
75
75
const result : String = merge ( patch , base , false )
76
76
. split ( '\n' )
77
77
. map ( ( value ) => value . trim ( ) )
@@ -97,7 +97,7 @@ describe('Merging interface declarations', () => {
97
97
) . length ,
98
98
) . to . be . equal ( 1 , 'misformed class declaration' ) ;
99
99
} ) ;
100
- it ( 'should be accumulated with patchOverride (should not make a difference).' , ( ) => {
100
+ it ( 'should be accumulated with patchOverride (should not make any difference).' , ( ) => {
101
101
const result : String [ ] = merge ( base , patch , true )
102
102
. split ( '\n' ) // get each individual line
103
103
. map ( ( value ) => value . trim ( ) ) // trim all lines (no white spaces at the beginning and end of a line)
@@ -109,42 +109,4 @@ describe('Merging interface declarations', () => {
109
109
) . to . be . equal ( 1 , 'misformed class declaration' ) ;
110
110
} ) ;
111
111
} ) ;
112
-
113
- describe ( 'multiple comments on interface definitions' , ( ) => {
114
- const base = `/* Test this */
115
- // Bla test
116
- interface a { }` ,
117
- patch = `/* Test that */
118
- // Ble test
119
- interface a {}` ;
120
-
121
- it ( 'should be accumulated.' , ( ) => {
122
- const result : String [ ] = merge ( base , patch , false )
123
- . split ( '\n' ) // get each individual line
124
- . map ( ( value ) => value . trim ( ) ) // trim all lines (no white spaces at the beginning and end of a line)
125
- . filter ( ( value ) => value != '' ) ; // remove empty lines
126
- expect ( result . indexOf ( '/* Test this */' ) ) . to . be . greaterThan (
127
- - 1 ,
128
- 'first base comment should be present in interface a' ,
129
- ) ;
130
- expect ( result . indexOf ( '// Bla test' ) ) . to . be . greaterThan (
131
- 0 ,
132
- 'second base comment should be present in interface a' ,
133
- ) ;
134
- } ) ;
135
- it ( 'should be accumulated with patchOverride (should not make a difference).' , ( ) => {
136
- const result : String [ ] = merge ( base , patch , true )
137
- . split ( '\n' ) // get each individual line
138
- . map ( ( value ) => value . trim ( ) ) // trim all lines (no white spaces at the beginning and end of a line)
139
- . filter ( ( value ) => value != '' ) ; // remove empty lines
140
- expect ( result . indexOf ( '/* Test that */' ) ) . to . be . greaterThan (
141
- - 1 ,
142
- 'first patch comment should be present in interface' ,
143
- ) ;
144
- expect ( result . indexOf ( '// Ble test' ) ) . to . be . greaterThan (
145
- 0 ,
146
- 'second patch comment should be present in interface' ,
147
- ) ;
148
- } ) ;
149
- } ) ;
150
112
} ) ;
0 commit comments