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

sajov / feathers-solr / 10839362906

12 Sep 2024 09:59PM UTC coverage: 100.0%. Remained the same
10839362906

Pull #303

github

web-flow
Merge 8f64c316b into d90addfe5
Pull Request #303: Bump @types/mocha from 10.0.7 to 10.0.8

119 of 119 branches covered (100.0%)

149 of 149 relevant lines covered (100.0%)

189.8 hits per line

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

100.0
/src/utils/filterResolver.ts
1
export const filterResolver: any = {
1✔
2
  $search: (value: string | undefined) => value || '*:*',
522✔
3
  $select: (fields: string[] | undefined) => {
4
    return (!Array.isArray(fields) || fields.length === 0 ?
522✔
5
      ['*', 'score'] : fields.indexOf('id') === -1 ?
12✔
6
        fields.concat(['id']) : fields).join(',')
7
  },
8
  $limit: ($limit: number, paginate: any) => Math.min(Number($limit ?? paginate.default ?? 15), paginate.max ?? $limit ?? 15 as unknown as number),
522✔
9
  $skip: (value: number) => value || 0,
522✔
10
  $sort: (value: any) => Object.keys(value).map(key => `${key} ${(parseInt(value[key], 10) === 1 ? 'asc' : 'desc')}`).join(',')
20✔
11
};
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