UNPKG

@melonproject/protocol

Version:

Technology Regulated and Operated Investment Funds

13 lines (12 loc) 625 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const toBeTrueWith = (received, comparator, expected) => comparator(received, expected) ? { message: () => `Expected ${comparator.name} to return false. Received: \n '${JSON.stringify(received, null, 2)}' \n expected: \n ${JSON.stringify(expected, null, 2)})`, pass: true, } : { message: () => `Expected ${comparator.name} to return true. Received: \n '${JSON.stringify(received, null, 2)}' \n expected: \n ${JSON.stringify(expected, null, 2)}`, pass: false, }; exports.toBeTrueWith = toBeTrueWith;