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 Code Duplication in Create and Edit Notes #2

Open
mala-eficode opened this issue Jan 22, 2025 · 0 comments
Open

Refactor Code Duplication in Create and Edit Notes #2

mala-eficode opened this issue Jan 22, 2025 · 0 comments

Comments

@mala-eficode
Copy link
Collaborator

Description:

  • As a developer,
  • I want to refactor the code for creating and editing notes to eliminate duplication,
  • So that the codebase is cleaner, more maintainable, and easier to understand.

Acceptance Criteria:

  1. Identify Duplication:

    • Identify the duplicated code in the Create and Edit notes functionality.
  2. Refactor Code:

    • Extract the common code into reusable functions or components.
    • Ensure that the refactored code maintains the same functionality for both creating and editing notes.
  3. Testing:

    • Write unit tests for the new reusable functions or components.
    • Ensure that existing tests for creating and editing notes still pass after the refactor.
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

No branches or pull requests

1 participant