Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AuthController { | |
static userSignUp(req, res, next) { | |
res.status(200).json({ | |
status: 'success', | |
message: 'signup sucessful', | |
}); | |
} | |
} | |
export default AuthController; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ADDING THE REDUX PROVIDER | |
import React from 'react'; | |
import { Provider } from 'react-redux'; | |
import store from '../redux/store'; | |
import Routes from '../routes'; | |
const App = () => { | |
return ( | |
<Provider store={store}> | |
<Routes /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Developer: Abayomi Olaoye | |
// Test to edit/update a user profile | |
import { describe, it } from 'mocha'; | |
import chai, { expect } from 'chai'; | |
import chaiHttp from 'chai-http'; | |
import index from '../index'; | |
const should = chai.should(); | |
chai.use(chaiHttp); |