1import * as Font from 'expo-font'; 2 3export const name = 'Font'; 4 5export async function test({ describe, it, expect }) { 6 describe(name, () => { 7 it(`loads`, async () => { 8 let error = null; 9 try { 10 await Font.loadAsync({ 11 'cool-font': require('../assets/comic.ttf'), 12 }); 13 } catch (e) { 14 error = e; 15 } 16 expect(error).toBeNull(); 17 }); 18 }); 19} 20