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

refactor(sdk-coin-trx): migrate mocha and sinon to node:test #5496

Merged
merged 2 commits into from
Feb 18, 2025

Conversation

kev-daniell
Copy link
Contributor

Ticket: DX-955

sinon migration was done using this script

mocha migration was done using this script

@kev-daniell kev-daniell requested a review from a team as a code owner February 7, 2025 03:41
import { getBuilder } from '../../src/lib/builder';

describe('Coin factory', () => {
it('should instantiate TRX builder properly', () => {
const trxBuilder = getBuilder('trx');
should.exist(trxBuilder);
assert.notEqual(trxBuilder, undefined);
Copy link
Contributor

Choose a reason for hiding this comment

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

think you should use assert.ok for this https://nodejs.org/api/assert.html#assertokvalue-message

Copy link
Contributor

Choose a reason for hiding this comment

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

for exist checks

@kev-daniell kev-daniell force-pushed the DX-955-sandbox-sdk-coin-trx-module branch from 0914adb to 56cfa00 Compare February 7, 2025 17:46
@sachushaji sachushaji merged commit a731c17 into master Feb 18, 2025
12 checks passed
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.

2 participants