Lines Matching refs:t

21 export function test(t) {  argument
22 t.describe('Linking', () => {
23 t.describe('canOpenUrl', () => {
24 t.it('can open exp:// URLs', async () => {
25 t.expect(await Linking.canOpenURL(validExpUrl)).toBe(true);
28 t.it('can open its own URLs', async () => {
29 t.expect(await Linking.canOpenURL(Constants.linkingUri)).toBe(true);
32 t.it('can open http:// URLs', async () => {
33 t.expect(await Linking.canOpenURL(validHttpUrl)).toBe(true);
36 t.it('can open https:// URLs', async () => {
37 t.expect(await Linking.canOpenURL(validHttpsUrl)).toBe(true);
41 t.describe('addListener', () => {
43 t.beforeAll(() => {
44 previousInterval = t.jasmine.DEFAULT_TIMEOUT_INTERVAL;
45 t.jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
47 t.afterAll(() => {
48 t.jasmine.DEFAULT_TIMEOUT_INTERVAL = previousInterval;
54 t.it('listener gets called with a proper URL when opened from a web modal', async () => {
58 t.expect(url).toEqual(testUrl);
64 t.expect(handlerCalled).toBe(true);
65 t.expect(subscription).toBeTruthy();
71 t.it('listener gets called with a proper URL when opened from a web browser', async () => {
74 t.expect(url).toEqual(Linking.createURL('++message=Redirected automatically by timer'));
80 t.expect(handlerCalled).toBe(true);
85 t.it('listener gets called with a proper URL when opened from a web modal', async () => {
88 t.expect(url).toEqual(Linking.createURL('++message=Redirected automatically by timer'));
95 t.expect(handlerCalled).toBe(true);
99 t.it('listener gets called with a proper URL when opened with Linking.openURL', async () => {
107 t.expect(handlerCalled).toBe(true);
111 t.it('listener parses out deep link information correctly', async () => {
117 t.expect(path.replace(/\+/g, '')).toEqual('test/path');
118 t.expect(queryParams.query).toEqual('param');
124 t.expect(handlerCalled).toBe(true);