UNPKG

@bubblewrap/core

Version:

Core Library to generate, build and sign TWA projects

38 lines (37 loc) 990 B
import { Log } from '../../lib/Log'; /** * An utility class for testing used for get the logging messages without printing to the user. */ export declare class MockLog implements Log { private receivedData; /** * Creates a new MockLog instance. */ constructor(); getReceivedData(): Array<string>; /** * Saves the debug message to the Logger. * @param message The message the be saved. */ debug(message: string): void; /** * Saves the debug message to the Logger. * @param message The message the be saved. */ info(message: string): void; /** * Saves the debug message to the Logger. * @param message The message the be saved. */ warn(message: string): void; /** * Saves the debug message to the Logger. * @param message The message the be saved. */ error(message: string): void; setVerbose(): void; /** * Creates a new MockLog. */ newLog(): Log; }