Lines Matching refs:result
19 const result = await ImageManipulator.manipulateAsync(image.localUri, [
22 t.expect(result).toBeDefined();
23 t.expect(typeof result.uri).toBe('string');
24 t.expect(typeof result.width).toBe('number');
25 t.expect(typeof result.height).toBe('number');
30 const result = await ImageManipulator.manipulateAsync(
34 t.expect(result).toBeDefined();
35 t.expect(typeof result.uri).toBe('string');
36 t.expect(result.width).toBe(100);
37 t.expect(result.height).toBe(100);
41 const result = await ImageManipulator.manipulateAsync(image.localUri, [
46 t.expect(result.uri.startsWith('data:image/jpeg;base64,')).toBe(true);
48 t.expect(result.uri.endsWith('.jpg')).toBe(true);
53 const result = await ImageManipulator.manipulateAsync(
62 t.expect(result.uri.startsWith('data:image/jpeg;base64,')).toBe(true);
64 t.expect(result.uri.endsWith('.jpg')).toBe(true);
69 const result = await ImageManipulator.manipulateAsync(
78 t.expect(result.uri.startsWith('data:image/png;base64,')).toBe(true);
80 t.expect(result.uri.endsWith('.png')).toBe(true);
85 const result = await ImageManipulator.manipulateAsync(
93 t.expect(typeof result.base64).toBe('string');
94 t.expect(result.base64).not.toContain('\n');
95 t.expect(result.base64).not.toContain('\r');
96 t.expect(result.base64.startsWith('data:image/jpeg;base64,')).toBe(false);
100 const result = await ImageManipulator.manipulateAsync(
110 const resultInfo = await fetch(result.uri).then((a) => a.blob());
115 const resultInfo = await FileSystem.getInfoAsync(result.uri);
122 const result = await ImageManipulator.manipulateAsync(image.localUri, [{ rotate: 45 }]);
123 t.expect(result.width).toBeGreaterThan(image.width);
127 const result = await ImageManipulator.manipulateAsync(image.localUri, [
130 t.expect(result.width).toBe(image.width);
131 t.expect(result.height).toBe(image.height);
135 const result = await ImageManipulator.manipulateAsync(image.localUri, [
138 t.expect(result.width).toBe(image.width);
139 t.expect(result.height).toBe(image.height);
143 const result = await ImageManipulator.manipulateAsync(image.localUri, [
146 t.expect(result.height).toBe(100);
147 t.expect(result.width).toBe(100);
151 const result = await ImageManipulator.manipulateAsync(image.localUri, [
154 t.expect(result.height).toBe(100);
155 t.expect(result.width).toBe(100);
159 const result = await ImageManipulator.manipulateAsync(image.localUri, [
165 t.expect(result.height).toBe(100);
166 t.expect(result.width).toBe(100);