Skip to content

Commit 6278e21

Browse files
committed
changed imports to requires for passport
1 parent 69e8a9b commit 6278e21

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

__tests__/componentReducer.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import reducer from '../app/src/redux/reducers/slice/appStateSlice';
22
import { State, Action } from '../app/src/interfaces/Interfaces';
33
import { initialState } from '../app/src/redux/reducers/slice/appStateSlice';
4-
import styled from '@emotion/styled';
54

65
describe('componentReducer Test', () => {
76
let state: State = initialState;

server/routers/passport-setup.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import passport from 'passport';
2-
import passportGithub2 from 'passport-github2';
1+
const passport = require('passport');
2+
const passportGithub2 = require('passport-github2');
33
import user from '../models/Oauth-model';
44
import GoogleStrategy from 'passport-google-oauth20';
55
import config from '../../config';

server/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ app.use(
6666

6767
// V.15 Team: Github Oauth and Google Oauth works! (starts here)
6868
const passport = require('passport');
69-
import passportSetup from './routers/passport-setup';
69+
const passportSetup = require('./routers/passport-setup');
7070
const session = require('express-session');
7171
import authRoutes from './routers/auth';
7272

0 commit comments

Comments
 (0)