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

Revert "Revert "added some error catching to remove confusion with firebase errors."" #324

Open
wants to merge 1 commit into
base: staging
Choose a base branch
from

Conversation

avayedawadi
Copy link
Contributor

Reverts #323

Copy link

netlify bot commented Mar 30, 2024

Deploy Preview for angels-among-us ready!

Name Link
🔨 Latest commit 0aae64a
🔍 Latest deploy log https://app.netlify.com/sites/angels-among-us/deploys/66085f9f71161c000889708c
😎 Deploy Preview https://deploy-preview-324--angels-among-us.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

Coverage report for web

Caution

Test run failed

St.
Category Percentage Covered / Total
🔴 Statements
22.64% (-0.08% 🔻)
524/2314
🔴 Branches
7.85% (-0.08% 🔻)
61/777
🔴 Functions 12.33% 83/673
🔴 Lines
18.82% (-0.07% 🔻)
388/2062

Test suite run failed

Failed tests: 17/44. Failed suites: 2/7.
  ● [DB] Account - Unit Test › findAccount › happy

    ValidationError: Account validation failed: lowerEmail: Path `lowerEmail` is required.

      at model.Object.<anonymous>.Document.invalidate (node_modules/mongoose/lib/document.js:3174:32)
      at node_modules/mongoose/lib/document.js:2962:17
      at node_modules/mongoose/lib/schematype.js:1349:9

  ● [DB] Account - Unit Test › findAccount › all caps email

    ValidationError: Account validation failed: lowerEmail: Path `lowerEmail` is required.

      at model.Object.<anonymous>.Document.invalidate (node_modules/mongoose/lib/document.js:3174:32)
      at node_modules/mongoose/lib/document.js:2962:17
      at node_modules/mongoose/lib/schematype.js:1349:9

  ● [DB] Account - Unit Test › findAccount › unauthorized email

    ValidationError: Account validation failed: lowerEmail: Path `lowerEmail` is required.

      at model.Object.<anonymous>.Document.invalidate (node_modules/mongoose/lib/document.js:3174:32)
      at node_modules/mongoose/lib/document.js:2962:17
      at node_modules/mongoose/lib/schematype.js:1349:9

  ● [DB] Account - Unit Test › findAccount › db error

    ValidationError: Account validation failed: lowerEmail: Path `lowerEmail` is required.

      at model.Object.<anonymous>.Document.invalidate (node_modules/mongoose/lib/document.js:3174:32)
      at node_modules/mongoose/lib/document.js:2962:17
      at node_modules/mongoose/lib/schematype.js:1349:9

  ● [DB] Account - Unit Test › removeAllAccounts › happy

    ValidationError: Account validation failed: lowerEmail: Path `lowerEmail` is required.

      at model.Object.<anonymous>.Document.invalidate (node_modules/mongoose/lib/document.js:3174:32)
      at node_modules/mongoose/lib/document.js:2962:17
      at node_modules/mongoose/lib/schematype.js:1349:9

  ● [DB] Account - Unit Test › removeAllAccounts › unauthorized account

    ValidationError: Account validation failed: lowerEmail: Path `lowerEmail` is required.

      at model.Object.<anonymous>.Document.invalidate (node_modules/mongoose/lib/document.js:3174:32)
      at node_modules/mongoose/lib/document.js:2962:17
      at node_modules/mongoose/lib/schematype.js:1349:9

  ● [DB] Account - Unit Test › removeAllAccounts › authorized with unauthorized accounts

    ValidationError: Account validation failed: lowerEmail: Path `lowerEmail` is required.

      at model.Object.<anonymous>.Document.invalidate (node_modules/mongoose/lib/document.js:3174:32)
      at node_modules/mongoose/lib/document.js:2962:17
      at node_modules/mongoose/lib/schematype.js:1349:9

  ● [DB] Account - Unit Test › updateAccount › happy

    ValidationError: Account validation failed: lowerEmail: Path `lowerEmail` is required.

      at model.Object.<anonymous>.Document.invalidate (node_modules/mongoose/lib/document.js:3174:32)
      at node_modules/mongoose/lib/document.js:2962:17
      at node_modules/mongoose/lib/schematype.js:1349:9

  ● [DB] Account - Unit Test › updateAccount › unauthorized account

    ValidationError: Account validation failed: lowerEmail: Path `lowerEmail` is required.

      at model.Object.<anonymous>.Document.invalidate (node_modules/mongoose/lib/document.js:3174:32)
      at node_modules/mongoose/lib/document.js:2962:17
      at node_modules/mongoose/lib/schematype.js:1349:9

  ● [DB] Account - Unit Test › addAccount › happy

    ValidationError: Account validation failed: lowerEmail: Path `lowerEmail` is required.

      at model.Object.<anonymous>.Document.invalidate (node_modules/mongoose/lib/document.js:3174:32)
      at node_modules/mongoose/lib/document.js:2962:17
      at node_modules/mongoose/lib/schematype.js:1349:9

  ● [DB] Account - Unit Test › addAccount › existing account

    ValidationError: Account validation failed: lowerEmail: Path `lowerEmail` is required.

      at model.Object.<anonymous>.Document.invalidate (node_modules/mongoose/lib/document.js:3174:32)
      at node_modules/mongoose/lib/document.js:2962:17
      at node_modules/mongoose/lib/schematype.js:1349:9

  ● [DB] Account - Unit Test › findAll › happy

    ValidationError: Account validation failed: lowerEmail: Path `lowerEmail` is required.

      at model.Object.<anonymous>.Document.invalidate (node_modules/mongoose/lib/document.js:3174:32)
      at node_modules/mongoose/lib/document.js:2962:17
      at node_modules/mongoose/lib/schematype.js:1349:9

  ● [DB] Account - Unit Test › findAll › db error

    ValidationError: Account validation failed: lowerEmail: Path `lowerEmail` is required.

      at model.Object.<anonymous>.Document.invalidate (node_modules/mongoose/lib/document.js:3174:32)
      at node_modules/mongoose/lib/document.js:2962:17
      at node_modules/mongoose/lib/schematype.js:1349:9

  ● [DB] Account - Unit Test › searchAccounts › happy

    ValidationError: Account validation failed: lowerEmail: Path `lowerEmail` is required.

      at model.Object.<anonymous>.Document.invalidate (node_modules/mongoose/lib/document.js:3174:32)
      at node_modules/mongoose/lib/document.js:2962:17
      at node_modules/mongoose/lib/schematype.js:1349:9

  ● [DB] Account - Unit Test › searchAccounts › not found

    ValidationError: Account validation failed: lowerEmail: Path `lowerEmail` is required.

      at model.Object.<anonymous>.Document.invalidate (node_modules/mongoose/lib/document.js:3174:32)
      at node_modules/mongoose/lib/document.js:2962:17
      at node_modules/mongoose/lib/schematype.js:1349:9


  ● [DB] User - Unit Test › searchUsers › happy

    ValidationError: User validation failed: lowerEmail: Path `lowerEmail` is required.

      at model.Object.<anonymous>.Document.invalidate (node_modules/mongoose/lib/document.js:3174:32)
      at node_modules/mongoose/lib/document.js:2962:17
      at node_modules/mongoose/lib/schematype.js:1349:9

  ● [DB] User - Unit Test › searchUsers › empty array

    ValidationError: User validation failed: lowerEmail: Path `lowerEmail` is required.

      at model.Object.<anonymous>.Document.invalidate (node_modules/mongoose/lib/document.js:3174:32)
      at node_modules/mongoose/lib/document.js:2962:17
      at node_modules/mongoose/lib/schematype.js:1349:9

Report generated by 🧪jest coverage report action from 0aae64a

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.

1 participant