Skip to content

Commit

Permalink
Fix more linting
Browse files Browse the repository at this point in the history
  • Loading branch information
mattphillips committed Mar 1, 2019
1 parent cff2dfa commit ca3ca23
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
10 changes: 9 additions & 1 deletion 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';

Expand All @@ -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 =>
Expand Down
10 changes: 9 additions & 1 deletion 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';
Expand All @@ -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),
}));
};

Expand Down
8 changes: 8 additions & 0 deletions 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';
Expand Down

0 comments on commit ca3ca23

Please sign in to comment.