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

IQSS / dataverse-frontend / 18140405254

30 Sep 2025 06:55PM UTC coverage: 98.052% (+0.7%) from 97.333%
18140405254

push

github

web-flow
Merge pull request #844 from IQSS/jggautier-patch-1

Adding "Featured Items" to changes section of README

1582 of 1638 branches covered (96.58%)

Branch coverage included in aggregate %.

3804 of 3855 relevant lines covered (98.68%)

10860.15 hits per line

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

90.0
/src/sections/collection/collection-items-panel/items-list/file-card/FileCardHelper.ts
1
import { DatasetNonNumericVersionSearchParam } from '@/dataset/domain/models/Dataset'
2

3
export class FileCardHelper {
4
  static getDatasetSearchParams(persistentId: string, isDraft: boolean): Record<string, string> {
5
    const params: Record<string, string> = { persistentId: persistentId }
6
    if (isDraft) {
7
      params.version = DatasetNonNumericVersionSearchParam.DRAFT
8
    }
9
    return params
10
  }
11
  static getFileSearchParams(id: number, isDraft: boolean): Record<string, string> {
835✔
12
    const params: Record<string, string> = { id: id.toString() }
835!
13
    if (isDraft) {
×
14
      params.datasetVersion = DatasetNonNumericVersionSearchParam.DRAFT
15
    }
835✔
16
    return params
17
  }
18

1,704✔
19
  static formatBytesToCompactNumber(bytes: number): string {
1,704✔
20
    const byteValueNumberFormatter = Intl.NumberFormat(undefined, {
14✔
21
      notation: 'compact',
22
      style: 'unit',
1,704✔
23
      unit: 'byte',
24
      unitDisplay: 'narrow'
25
    })
26

27
    return byteValueNumberFormatter.format(bytes)
28
  }
29
}
855✔
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