Skip to content

feat: jests tests added#62

Open
RaveenDilaksha wants to merge 1 commit intoHardhat-Enterprises:devfrom
RaveenDilaksha:feat/whoisapi
Open

feat: jests tests added#62
RaveenDilaksha wants to merge 1 commit intoHardhat-Enterprises:devfrom
RaveenDilaksha:feat/whoisapi

Conversation

@RaveenDilaksha
Copy link
Copy Markdown

  • Added unit tests for helpers:
    • domainHelper.test.js → date parsing, domain age, risky TLD, privacy detection,
    TXT parsing, and risk score scenarios
    • netHelper.test.js → mocked dns/promises and tls to verify DNS/SSL logic without real I/O
    • whois.service.test.js → mocked axios + net helpers to test orchestration and error handling

  • Benefits:
    • Improved reliability with deterministic tests and mocks
    • Modular test structure mirrors code architecture for easier maintenance

@Ed-ward-Harris
Copy link
Copy Markdown
Collaborator

Looks good, could you just reslove the conflicts, should be able to just let npm sort it out once you've updated your branch with the dev branch. Once this is done I will merge.

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