feathers-plus / cli

FeathersJS CLI supporting both REST and GraphQL architectural concepts and their query languages.
https://generator.feathers-plus.com/
Other
43 stars 7 forks source link

Generate test for base authentication #19

Closed bsa-git closed 6 years ago

bsa-git commented 6 years ago

When you run this test, an error occurs. Wrong email format... The error may be in the file: "C:/NodeServer/feathers-plus-app/node_modules/@feathers-plus/test-utils/lib/cli/authentication.base.js" ... const loginEmail = 'hdsjkhsdkhfhfdhgfjffghfghfghfh'; ...

eddyystop commented 6 years ago

Good point.

  1. Which adapter and DB are you using?
  2. Did you define validation checking on the DB model itself, or
  3. perhaps add a validation hook on the service?
bsa-git commented 6 years ago
  1. I am using an "mongoose" adapter for the database.
  2. I am using a alidation hook on the service.
eddyystop commented 6 years ago

Thanks for this catch.

Changed in both test modules to

const loginEmail = 'hdsjkhsdkhfhfd@hgfjffghfgh.com';

Published as v0.3.4. I think you can just install that over your generated app.