Skip to content

Commit 1cd0ba4

Browse files
committed
chore: add tests for convertToUploadcareQualityString
1 parent 3c678d1 commit 1cd0ba4

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { convertToUploadcareQualityString } from '../utils/helpers';
2+
3+
describe('convertToUploadcareQualityString', () => {
4+
it('should map 0 to lightest', () => {
5+
expect(convertToUploadcareQualityString(0)).toBe('lightest');
6+
});
7+
8+
it('should map 38 to lightest', () => {
9+
expect(convertToUploadcareQualityString(38)).toBe('lightest');
10+
});
11+
12+
it('should map 39 to lighter', () => {
13+
expect(convertToUploadcareQualityString(39)).toBe('lighter');
14+
});
15+
16+
it('should map 100 to best', () => {
17+
expect(convertToUploadcareQualityString(100)).toBe('best');
18+
});
19+
});

0 commit comments

Comments
 (0)