Skip to content

Commit

Permalink
chore: apply suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT committed Oct 26, 2023
1 parent b31af04 commit 1545831
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/all_functional.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ function isTestableModule(moduleName: string): moduleName is keyof Faker {
return !IGNORED_MODULES.has(moduleName);
}

function getMethodNamesOf(module: Faker[keyof Faker]): string[] {
function getMethodNamesOf(module: object): string[] {
return Object.keys(module).filter(isMethodOf(module));
}

function isMethodOf(module: Faker[keyof Faker]): (method: string) => boolean {
function isMethodOf(module: object): (method: string) => boolean {
return (method: string) => typeof module[method] === 'function';
}

Expand Down

0 comments on commit 1545831

Please sign in to comment.