Skip to content

Commit

Permalink
Remove logstore's serialization functions from code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
nephix committed Mar 27, 2020
1 parent 55c1315 commit 74a658f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions raiden-dapp/src/utils/logstore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ interface RaidenDB extends DBSchema {

let db: IDBPDatabase<RaidenDB>;

/* istanbul ignore next */
function serializeError(e: Error): string {
// special handling of Errors, since firefox doesn't like to structure-clone it
// https://bugzilla.mozilla.org/show_bug.cgi?id=1556604
Expand All @@ -33,6 +34,7 @@ function serializeError(e: Error): string {
}
}

/* istanbul ignore next */
function filterMessage(message: any[]) {
if (message[0] === '%c prev state') return;
if (message[0] === '—— log end ——') return;
Expand All @@ -42,6 +44,7 @@ function filterMessage(message: any[]) {
return message;
}

/* istanbul ignore next */
function serialize(e: any): string {
if (typeof e === 'string') return e;
try {
Expand All @@ -55,6 +58,7 @@ function serialize(e: any): string {
}
}

/* istanbul ignore next */
export async function setupLogStore(
dbName = 'raiden',
additionalLoggers: string[] = ['matrix']
Expand Down

0 comments on commit 74a658f

Please sign in to comment.