mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2025-01-07 06:05:57 +00:00
45 lines
1.8 KiB
TypeScript
45 lines
1.8 KiB
TypeScript
|
import '../../index';
|
||
|
import { Reference } from '../../src/api/Reference';
|
||
|
import { Query } from '../../src/api/Query';
|
||
|
export declare const TEST_PROJECT: any;
|
||
|
export declare const DATABASE_ADDRESS: any;
|
||
|
export declare const DATABASE_URL: any;
|
||
|
/**
|
||
|
* Fake Firebase App Authentication functions for testing.
|
||
|
* @param {!FirebaseApp} app
|
||
|
* @return {!FirebaseApp}
|
||
|
*/
|
||
|
export declare function patchFakeAuthFunctions(app: any): any;
|
||
|
export declare function createTestApp(): FirebaseApp;
|
||
|
/**
|
||
|
* Gets or creates a root node to the test namespace. All calls sharing the
|
||
|
* value of opt_i will share an app context.
|
||
|
* @param {number=} i
|
||
|
* @param {string=} ref
|
||
|
* @return {Reference}
|
||
|
*/
|
||
|
export declare function getRootNode(i?: number, ref?: string): any;
|
||
|
/**
|
||
|
* Create multiple refs to the same top level
|
||
|
* push key - each on it's own Firebase.Context.
|
||
|
* @param {int=} numNodes
|
||
|
* @return {Reference|Array<Reference>}
|
||
|
*/
|
||
|
export declare function getRandomNode(numNodes?: any): Reference | Array<Reference>;
|
||
|
export declare function getQueryValue(query: Query): Promise<any>;
|
||
|
export declare function pause(milliseconds: number): Promise<{}>;
|
||
|
export declare function getPath(query: Query): string;
|
||
|
export declare function shuffle(arr: any, randFn?: () => number): void;
|
||
|
export declare function testAuthTokenProvider(app: any): {
|
||
|
setToken: (token: any) => Promise<void>;
|
||
|
setNextToken: (token: any) => void;
|
||
|
};
|
||
|
export declare function getFreshRepo(path: any): any;
|
||
|
export declare function getFreshRepoFromReference(ref: any): any;
|
||
|
export declare function getSnap(path: any): any;
|
||
|
export declare function getVal(path: any): any;
|
||
|
export declare function canCreateExtraConnections(): boolean;
|
||
|
export declare function buildObjFromKey(key: any): {};
|
||
|
export declare function testRepoInfo(url: any): RepoInfo;
|
||
|
export declare function repoInfoForConnectionTest(): RepoInfo;
|