UNPKG

@haechi-labs/henesis-cli

Version:

🚀 Command Line Interface tool to Utilize henesis

22 lines • 1.11 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const utils_1 = require("./utils"); const first_json_1 = tslib_1.__importDefault(require("./mock/abi/first.json")); const second_json_1 = tslib_1.__importDefault(require("./mock/abi/second.json")); const third_json_1 = tslib_1.__importDefault(require("./mock/abi/third.json")); const aggregated_json_1 = tslib_1.__importDefault(require("./mock/abi/aggregated.json")); const test_1 = require("@oclif/test"); describe('utils-test', () => { describe('concatAndDeDuplicate()', () => { it('aggregate abis when the events of contract are separated in several files', async () => { let aggregatedAbis = []; aggregatedAbis.push(first_json_1.default); aggregatedAbis.push(second_json_1.default); aggregatedAbis.push(third_json_1.default); const result = utils_1.concatAndDeDuplicate(...aggregatedAbis); test_1.expect(result).to.deep.equal(aggregated_json_1.default); }); }); }); //# sourceMappingURL=utils.spec.js.map