Meta tweaks

This commit is contained in:
Sindre Sorhus 2019-05-04 16:11:43 +07:00
parent dd2a91dce5
commit 2dac8e96f4
2 changed files with 5 additions and 6 deletions

View file

@ -464,7 +464,7 @@ const testType = (t: ExecutionContext, type: string, exclude?: string[]) => {
for (const [key, {fixtures}] of types) {
// TODO: Automatically exclude value types in other tests that we have in the current one.
// Could reduce the use of `exclude`.
if (exclude && exclude.indexOf(key) !== -1) {
if (exclude && exclude.includes(key)) {
continue;
}