Skip to content

Tests for Implementation of Social Authentication Too Strict #39675

Closed

Description

@ShaunSHamilton

The tests need to be updated to allow for the two main ways of defining routes:

app.get('/auth/github/callback')
  .post(passport.authenticate('local', { failureRedirect: '/' }), (req,res) => {
    res.redirect('/profile');
  });

AND

app.get('/auth/github/callback', passport.authenticate('local', { failureRedirect: '/' }), (req,res) => {
    res.redirect('/profile');
  });

Add a Link to the page with the problem:
https://github.com/freeCodeCamp/freeCodeCamp/blob/master/curriculum/challenges/english/06-quality-assurance/advanced-node-and-express/implementation-of-social-authentication.english.md

Activity

  1. added
    help wanted
    scope: curriculum
    on Sep 24, 2020
  2. RandellDawson commented on Sep 24, 2020

    @RandellDawson
    Member

    We need to figure how to test most things without using regex.

  3. ShaunSHamilton commented on Sep 24, 2020

    @ShaunSHamilton
    MemberAuthor

    @RandellDawson We could change the tests to ping the route, to determine if it was defined correctly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

help wantedscope: curriculum

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions