File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed
tests/assets/data-tests/label Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 11const first = [ '15' , '32' , '12' ]
2- const rest = [ '3' ]
32
43const excepted = {
5- 0 : first . sort ( ) ,
6- 1 : rest . sort ( ) ,
7- 2 : first . sort ( )
4+ 0 : first ,
5+ 1 : [ '3' ] ,
6+ 2 : first
87}
98
109module . exports = excepted
Original file line number Diff line number Diff line change @@ -17,4 +17,11 @@ const testCases = [
1717 }
1818]
1919
20+ for ( const testCase in testCases ) {
21+ const excepted = testCases [ testCase ] . excepted
22+ if ( Array . isArray ( excepted ) ) {
23+ testCases [ testCase ] . excepted = excepted . sort ( )
24+ }
25+ }
26+
2027module . exports = testCases
Original file line number Diff line number Diff line change @@ -332,10 +332,4 @@ const excepted = {
332332 57 : first
333333}
334334
335- for ( const key in excepted ) {
336- if ( Array . isArray ( excepted [ key ] ) ) {
337- excepted [ key ] = excepted [ key ] . sort ( )
338- }
339- }
340-
341335module . exports = excepted
You can’t perform that action at this time.
0 commit comments