• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

satanTime / ngrx-entity-relationship / 475a6fe6-862e-42f9-b95e-23a40dfab79b

26 Jan 2024 01:24AM UTC coverage: 100.0%. Remained the same
475a6fe6-862e-42f9-b95e-23a40dfab79b

Pull #2048

circleci

web-flow
chore(deps): update dependency husky to v9
Pull Request #2048: chore(deps): update dependency husky to v9

443 of 443 branches covered (100.0%)

Branch coverage included in aggregate %.

680 of 680 relevant lines covered (100.0%)

33.45 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/libs/ngrx-entity-relationship/graphql/src/lib/toTerm.ts
1
export function toTerm(term: 'query' | 'subscription' | 'mutation', ...args: Array<any>): string {
2
    const params: Array<string> = [];
15✔
3
    let toGraphQL = '';
15✔
4

5
    if (typeof args[0] === 'object') {
15✔
6
        for (const key of Object.keys(args[0] || {})) {
8✔
7
            params.push(`${key}:${args[0][key]}`);
49✔
8
        }
9
        toGraphQL = args[1];
8✔
10
    } else {
11
        toGraphQL = args[0];
7✔
12
    }
13

14
    return `${term}${params.length ? `(${params.join(',')})` : ''}${toGraphQL}`;
15✔
15
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc