@mutants/cardano-tx-builder
Version:
A package that provides utility functions to build and destructure a cardano transaction
13 lines (12 loc) • 478 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const mocks_1 = require("../__mocks__/mocks");
const assetToAssetValue_1 = require("../assetToAssetValue");
describe("assetToAssetValue", () => {
test("should convert an asset string to an AssetValue", () => {
expect((0, assetToAssetValue_1.assetToAssetValue)(mocks_1.MOCK_ASSETS.A, 1n)).toEqual({
unit: mocks_1.MOCK_ASSETS.A,
quantity: 1n,
});
});
});