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

feat: New field in Note's schema #284

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

DeadCreator
Copy link

Now you can send creatorId field from database to use it in frontend. This solves #283.

Now you can send creatorId field from  database to use it in frontend
Copy link

github-actions bot commented Jan 14, 2025

Coverage Report

Status Category Percentage Covered / Total
🟢 Lines 85.94% (🎯 80%)
⬆️ +0.01%
8572 / 9974
🟢 Statements 85.94% (🎯 80%)
⬆️ +0.01%
8572 / 9974
🔴 Functions 79.22% (🎯 80%)
🟰 ±0%
267 / 337
🟢 Branches 85.4% (🎯 80%)
🟰 ±0%
427 / 500
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/presentation/http/schema/Note.ts 100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
Generated in workflow #866 for commit 9a05a16 by the Vitest Coverage Report Action

Copy link
Member

@neSpecc neSpecc left a comment

Choose a reason for hiding this comment

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

add this field to the note test, please

Now we are waiting for creatorId field from notes api
@DeadCreator DeadCreator requested a review from neSpecc January 29, 2025 20:49
expect(response?.json().note.createdAt).not.toBeNull();
expect(response?.json().note.updatedAt).not.toBeNull();
expect(response?.json().note.creatorId).not.toBeNull();
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
expect(response?.json().note.creatorId).not.toBeNull();
expect(response?.json().note.creatorId).to.be(creator.id);

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