Skip to content

Commit ca3ca23

Browse files
committed
Fix more linting
1 parent cff2dfa commit ca3ca23

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

packages/jest-each/src/table/array.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
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+
19
import util from 'util';
210
import pretty from 'pretty-format';
311

@@ -10,8 +18,8 @@ const INDEX_PLACEHOLDER = '%#';
1018

1119
export 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

1725
const normaliseTable = (table: Global.ArrayTable): Global.Table =>

packages/jest-each/src/table/template.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
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+
19
import pretty from 'pretty-format';
210
import {isPrimitive} from 'jest-get-type';
311
import {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

packages/jest-each/src/validation.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
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+
19
import chalk from 'chalk';
210
import pretty from 'pretty-format';
311
import {TemplateData} from '@jest/types/build/Global';

0 commit comments

Comments
 (0)