Searched refs:getUserAsync (Results 1 – 12 of 12) sorted by relevance
15 getUserAsync,90 describe(getUserAsync, () => {93 expect(await getUserAsync()).toBeUndefined();98 expect(await getUserAsync()).toMatchObject({ __typename: 'User' });105 expect(await getUserAsync()).toMatchObject({ __typename: 'User' });111 const { getUserAsync } = require('../user'); constant114 await expect(getUserAsync()).resolves.toBeUndefined();
3 import { getActorDisplayName, getUserAsync } from '../api/user/user';7 const user = await getUserAsync();
5 import { Actor, getUserAsync, loginAsync, ssoLoginAsync } from './user';96 let user = await getUserAsync().catch(() => null);101 user = await getUserAsync();
40 export async function getUserAsync(): Promise<Actor | undefined> { function
7 import { getUserAsync } from '../../api/user/user';16 return !!(await getUserAsync().catch(() => null));
7 import { getActorDisplayName, getUserAsync } from '../../api/user/user';45 const user = await getUserAsync();
1 export const getUserAsync = jest.fn(async () => ({})); constant
6 import { getUserAsync } from '../../api/user/user';91 await getUserAsync();
6 import { getUserAsync } from '../../api/user/user';49 asMock(getUserAsync).mockImplementation(async () => ({
97 githubUsernames.map(async (u) => await GitHub.getUserAsync(u))
11 import { getUserAsync } from '../../../../api/user/user';195 asMock(getUserAsync).mockImplementation(async () => ({
30 export async function getUserAsync(username: string) { function