From ca3ca230fd3c6a488f890a95172a40a2d438decb Mon Sep 17 00:00:00 2001 From: Matt Phillips Date: Fri, 1 Mar 2019 19:45:19 +0000 Subject: [PATCH] Fix more linting --- packages/jest-each/src/table/array.ts | 10 +++++++++- packages/jest-each/src/table/template.ts | 10 +++++++++- packages/jest-each/src/validation.ts | 8 ++++++++ 3 files changed, 26 insertions(+), 2 deletions(-) diff --git a/packages/jest-each/src/table/array.ts b/packages/jest-each/src/table/array.ts index c8cf7817543d..f2d58927294e 100644 --- a/packages/jest-each/src/table/array.ts +++ b/packages/jest-each/src/table/array.ts @@ -1,3 +1,11 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + */ + import util from 'util'; import pretty from 'pretty-format'; @@ -10,8 +18,8 @@ const INDEX_PLACEHOLDER = '%#'; export default (title: string, arrayTable: Global.ArrayTable): EachTests => normaliseTable(arrayTable).map((row, index) => ({ - title: formatTitle(title, row, index), arguments: row, + title: formatTitle(title, row, index), })); const normaliseTable = (table: Global.ArrayTable): Global.Table => diff --git a/packages/jest-each/src/table/template.ts b/packages/jest-each/src/table/template.ts index f7a8ea3d96f6..a618f163bd43 100644 --- a/packages/jest-each/src/table/template.ts +++ b/packages/jest-each/src/table/template.ts @@ -1,3 +1,11 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + */ + import pretty from 'pretty-format'; import {isPrimitive} from 'jest-get-type'; import {Global} from '@jest/types'; @@ -15,8 +23,8 @@ export default ( const table = convertRowToTable(row, headings); const templates = convertTableToTemplates(table, headings); return templates.map(template => ({ - title: interpolate(title, template), arguments: [template], + title: interpolate(title, template), })); }; diff --git a/packages/jest-each/src/validation.ts b/packages/jest-each/src/validation.ts index 0607ca885dc4..abc865db7d44 100644 --- a/packages/jest-each/src/validation.ts +++ b/packages/jest-each/src/validation.ts @@ -1,3 +1,11 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + */ + import chalk from 'chalk'; import pretty from 'pretty-format'; import {TemplateData} from '@jest/types/build/Global';