Skip to content

Conversation

@christianwwwwwwww
Copy link
Collaborator

Add tests for Aleo types, validating that the defined types match real-world values. Adjust definitions accordingly.

Copy link
Member

@iamalwaysuncomfortable iamalwaysuncomfortable left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is good so far, it simply needs more tests to cover the other types in the package.

auction_id: true,
};

const actualTxFromAPI: Transaction =

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably want to move all of the test data to a separate file.

import { Transaction } from "../src/transaction";
import { parseValueToJson } from "../src/parsers/plaintext";

const exampleAuctionRecord = {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should get several example records and test them!

Copy link
Member

@iamalwaysuncomfortable iamalwaysuncomfortable left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iamalwaysuncomfortable

This comment was marked as duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants