Migrate navigation tests

Summary: Migrated all the tests. I've put these in a single diff as there were only a couple of lines that had to be changed in each file.

Reviewed By: danielbuechele

Differential Revision: D17181587

fbshipit-source-id: cdcc20d71a47e786db4cefbebe9ea686d5e235e5
This commit is contained in:
Benjamin Elo
2019-09-05 03:22:08 -07:00
committed by Facebook Github Bot
parent 5b883351c4
commit d7814b19da
2 changed files with 5 additions and 8 deletions

View File

@@ -6,17 +6,14 @@
* @flow strict-local
*/
import {filterMatchPatterns} from '../util/autoCompleteProvider.tsx';
import {filterMatchPatterns} from '../util/autoCompleteProvider';
import type {URI} from '../flow-types';
import {URI} from '../types';
// choose all k length combinations from array
const stringCombination: (Array<string>, number) => Array<string> = (
patterns,
k,
) => {
const stringCombination = (patterns: Array<string>, k: number) => {
const n = patterns.length;
const returnArr = new Array(0);
const returnArr: Array<string> = new Array(0);
const args = new Array(k).fill(0).map((_, idx) => idx);
(function build(args) {
const pattern = args.map(i => patterns[i]).join('');

View File

@@ -11,7 +11,7 @@ import {
parameterIsNumberType,
replaceRequiredParametersWithValues,
filterOptionalParameters,
} from '../util/uri.tsx';
} from '../util/uri';
test('parse required parameters from uri', () => {
const testURI =