UNPKG

@mutants/cardano-tx-builder

Version:

A package that provides utility functions to build and destructure a cardano transaction

19 lines (18 loc) 697 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const mocks_1 = require("../__mocks__/mocks"); const assetsToNftAssetValues_1 = require("../assetsToNftAssetValues"); describe("assetsToNftAssetValues", () => { test("should convert a list of asset strings to a list of AssetValues with quantity 1", () => { expect((0, assetsToNftAssetValues_1.assetsToNftAssetValues)([mocks_1.MOCK_ASSETS.A, mocks_1.MOCK_ASSETS.B])).toEqual([ { unit: mocks_1.MOCK_ASSETS.A, quantity: 1n, }, { unit: mocks_1.MOCK_ASSETS.B, quantity: 1n, }, ]); }); });