File tree Expand file tree Collapse file tree 3 files changed +26
-2
lines changed Expand file tree Collapse file tree 3 files changed +26
-2
lines changed Original file line number Diff line number Diff line change 1+ /**
2+ * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
3+ *
4+ * This source code is licensed under the MIT license found in the
5+ * LICENSE file in the root directory of this source tree.
6+ *
7+ */
8+
19import util from 'util' ;
210import pretty from 'pretty-format' ;
311
@@ -10,8 +18,8 @@ const INDEX_PLACEHOLDER = '%#';
1018
1119export default ( title : string , arrayTable : Global . ArrayTable ) : EachTests =>
1220 normaliseTable ( arrayTable ) . map ( ( row , index ) => ( {
13- title : formatTitle ( title , row , index ) ,
1421 arguments : row ,
22+ title : formatTitle ( title , row , index ) ,
1523 } ) ) ;
1624
1725const normaliseTable = ( table : Global . ArrayTable ) : Global . Table =>
Original file line number Diff line number Diff line change 1+ /**
2+ * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
3+ *
4+ * This source code is licensed under the MIT license found in the
5+ * LICENSE file in the root directory of this source tree.
6+ *
7+ */
8+
19import pretty from 'pretty-format' ;
210import { isPrimitive } from 'jest-get-type' ;
311import { Global } from '@jest/types' ;
@@ -15,8 +23,8 @@ export default (
1523 const table = convertRowToTable ( row , headings ) ;
1624 const templates = convertTableToTemplates ( table , headings ) ;
1725 return templates . map ( template => ( {
18- title : interpolate ( title , template ) ,
1926 arguments : [ template ] ,
27+ title : interpolate ( title , template ) ,
2028 } ) ) ;
2129} ;
2230
Original file line number Diff line number Diff line change 1+ /**
2+ * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
3+ *
4+ * This source code is licensed under the MIT license found in the
5+ * LICENSE file in the root directory of this source tree.
6+ *
7+ */
8+
19import chalk from 'chalk' ;
210import pretty from 'pretty-format' ;
311import { TemplateData } from '@jest/types/build/Global' ;
You can’t perform that action at this time.
0 commit comments