1import * as MediaLibrary from '../MediaLibrary'; 2 3describe('createAssetAsync', () => { 4 it(`rejects an invalid URI`, async () => { 5 expect(MediaLibrary.createAssetAsync('')).rejects.toThrow(); 6 }); 7}); 8 9describe('isAvailableAsync', () => { 10 it('should resolve to true on native platforms', async () => { 11 await expect(MediaLibrary.isAvailableAsync()).resolves.toBeTruthy(); 12 }); 13}); 14