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

fix: failing tests #432

Merged
merged 2 commits into from
Oct 11, 2024
Merged

fix: failing tests #432

merged 2 commits into from
Oct 11, 2024

Conversation

Vin-it
Copy link
Contributor

@Vin-it Vin-it commented Sep 17, 2024

Context

  • When NostrTypeGuard was moved from core.ts to nip19.ts in the following commit 45b25c5 the tests were left behind in core.test.ts
  • The test in core.test.ts was still trying to import NostrTypeGuard from core.ts and threw this error when running tests
Screenshot 2024-09-17 at 20 41 07

Changes

  • Moved the tests to nip19.test.ts
  • Grouped them inside a describe block for NostrTypeGuard

NostrTypeGuard was moved to nip19.ts in commit 45b25c5
but tests stayed in core.test.ts and started failing because it still imported
NostrTypeGuard from core.ts - which wasn't there.
this way we don't need to repeat NostrTypeGuard in each tests description
@AsaiToshiya
Copy link
Collaborator

I think we can merge this.

@fiatjaf fiatjaf merged commit e398617 into nbd-wtf:master Oct 11, 2024
2 checks passed
@Vin-it Vin-it deleted the fix/failing-tests branch October 12, 2024 16:15
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.

None yet

3 participants