UNPKG

firebase-bolt

Version:

Firebase Bolt Security and Modeling Language Compiler

15 lines (14 loc) 583 B
export interface ObjectSpec { label?: string; data: any; expect?: any; } export declare type ArraySpec = [any, any]; export declare type ValueSpec = any; export declare type Spec = ObjectSpec | ArraySpec | ValueSpec; export declare type TestFunction = (data: any, expect: any, spec: Spec) => void; export declare type FormatFunction = (data: any) => string; export declare function dataDrivenTest(tests: Spec[], testIt: TestFunction, formatter?: typeof format): void; declare function format(o: any): string; export declare function expFormat(x: any): string; export {};