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

atinc / ngx-tethys / d9ae709b-3c27-4b69-b125-b8b80b54f90b

pending completion
d9ae709b-3c27-4b69-b125-b8b80b54f90b

Pull #2757

circleci

mengshuicmq
fix: fix code review
Pull Request #2757: feat(color-picker): color-picker support disabled (#INFR-8645)

98 of 6315 branches covered (1.55%)

Branch coverage included in aggregate %.

1 of 1 new or added line in 1 file covered. (100.0%)

2392 of 13661 relevant lines covered (17.51%)

83.12 hits per line

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

0.0
/src/upload/util.ts
1
import { isString, isArray } from 'ngx-tethys/util';
2
import { MIME_Map } from './constant';
3

4
export function mimeTypeConvert(value: Array<string> | string): string {
5
    let inputTypes: Array<string>;
×
6
    const acceptTypes: Array<string> = [];
×
7
    if (isArray(value)) {
×
8
        inputTypes = value as Array<string>;
9
    } else if (isString(value)) {
×
10
        inputTypes = value.split(',');
×
11
    } else {
12
        inputTypes = [];
13
    }
×
14

15
    if (inputTypes.length > 0) {
×
16
        inputTypes.forEach(n => {
×
17
            if (MIME_Map[n]) {
×
18
                acceptTypes.push(MIME_Map[n]);
×
19
            } else {
20
                acceptTypes.push(n);
21
            }
×
22
        });
23
    }
24
    return acceptTypes.join(',');
25
}
×
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