1import { Platform } from 'expo-modules-core'; 2 3import { makeRedirectUri } from '../AuthSession'; 4 5describe('Web and SSR', () => { 6 it(`Creates a redirect URL`, () => { 7 expect(makeRedirectUri()).toBe(Platform.isDOMAvailable ? 'http://localhost' : ''); 8 }); 9 10 it(`Creates a redirect URL with a custom path`, () => { 11 expect(makeRedirectUri({ path: 'bacon' })).toBe( 12 Platform.isDOMAvailable ? 'http://localhost/bacon' : '' 13 ); 14 }); 15}); 16