Lines Matching refs:asset
34 const asset = Asset.fromModule(module);
35 t.expect(asset.name).toBe(name);
36 t.expect(asset.type).toBe(type);
37 Object.keys(more).forEach((member) => t.expect(asset[member]).toBe(more[member]));
41 const asset = Asset.fromModule(module);
42 await asset.downloadAsync();
43 t.expect(asset.localUri).toMatch(new RegExp(`^file:\/\/.*\.${type}`));
50 const asset = Asset.fromModule(module);
51 await asset.downloadAsync();
57 } = await FileSystem.getInfoAsync(asset.localUri, {
63 more['hash'] && t.expect(md5).toBe(asset.hash);
64 t.expect(cacheUri).toBe(asset.localUri);