We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c678d1 commit 1cd0ba4Copy full SHA for 1cd0ba4
src/__tests__/convert-to-uploadcare-quality-string.spec.ts
@@ -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