Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(domainobjs): implement unit tests for the domainobjs package #934

Merged
merged 1 commit into from
Jan 5, 2024

Conversation

ctrlc03
Copy link
Collaborator

@ctrlc03 ctrlc03 commented Dec 18, 2023

Description

Implement more unit tests in the domainobjs package to ensure the code is thoroughly tested.

Related issue(s)

fix #929

Confirmation

@ctrlc03 ctrlc03 added the testing Issue/PR related to tests label Dec 18, 2023
@ctrlc03 ctrlc03 self-assigned this Dec 18, 2023
Copy link

netlify bot commented Dec 18, 2023

Deploy Preview for maci-typedoc ready!

Name Link
🔨 Latest commit c19d1d3
🔍 Latest deploy log https://app.netlify.com/sites/maci-typedoc/deploys/6597d8aecc470e00087bc1bf
😎 Deploy Preview https://deploy-preview-934--maci-typedoc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@ctrlc03 ctrlc03 force-pushed the test/domainobjs branch 2 times, most recently from d245d9f to 635200a Compare December 22, 2023 21:03
@ctrlc03 ctrlc03 force-pushed the test/domainobjs branch 5 times, most recently from 8e14bc1 to f71a56a Compare January 2, 2024 17:38
domainobjs/ts/__tests__/commands.test.ts Outdated Show resolved Hide resolved
domainobjs/ts/__tests__/ballot.test.ts Outdated Show resolved Hide resolved
domainobjs/ts/__tests__/commands.test.ts Show resolved Hide resolved
domainobjs/ts/__tests__/keypair.test.ts Outdated Show resolved Hide resolved
domainobjs/ts/__tests__/keypair.test.ts Outdated Show resolved Hide resolved
domainobjs/ts/__tests__/message.test.ts Outdated Show resolved Hide resolved
domainobjs/ts/__tests__/publicKey.test.ts Outdated Show resolved Hide resolved
domainobjs/ts/__tests__/stateLeaf.test.ts Outdated Show resolved Hide resolved
domainobjs/ts/__tests__/stateLeaf.test.ts Outdated Show resolved Hide resolved
@ctrlc03 ctrlc03 force-pushed the test/domainobjs branch 2 times, most recently from 4b8608e to 6005c16 Compare January 3, 2024 09:09
@ctrlc03 ctrlc03 requested a review from kittybest January 3, 2024 09:09
@ctrlc03 ctrlc03 force-pushed the test/domainobjs branch 3 times, most recently from 5fa9643 to a5e490c Compare January 3, 2024 16:29
domainobjs/ts/__tests__/message.test.ts Show resolved Hide resolved
expect(sk1.rawPrivKey.toString()).to.eq(BigInt(`${c.rawPrivKey}`).toString());
});
it("should always return a key with the same length", () => {
for (let i = 100; i < 100; i += 1) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

weird here, this for loop will never run.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

oh my, I put i = 100; i < 100 🤦

@ctrlc03 ctrlc03 merged commit e402231 into dev Jan 5, 2024
12 checks passed
@ctrlc03 ctrlc03 deleted the test/domainobjs branch January 5, 2024 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Issue/PR related to tests
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Domainobjs package unit tests
2 participants