This file contains 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
const TestForm = ({ changeHandler, | |
fields, | |
action, | |
validator, | |
data, | |
fieldError, | |
isCreatedDataLoading, | |
handleFormSubmission, | |
confirmFieldValidations }) => { |
This file contains 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
const StaticUpdateForm = ({ changeHandler, data, validator, confirmValidation, fieldErrors, onSubmit }) => { | |
return ( | |
<div className='create-fgt-wrapper'> | |
<div className="row"> | |
<form className="row fgt-form" noValidate autoComplete="off"> | |
<div className="col-md-6 col-12"> | |
<TextField |
This file contains 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
const StaticCreateForm = ({ fieldErrors, changeHandler, data, onSubmit, validator, confirmValidation }) => { | |
return ( | |
<div className='create-fgt-wrapper'> | |
<div className="row"> | |
<form className="row fgt-form" noValidate autoComplete="off"> | |
<div className="col-md-6 col-12"> | |
<TextField |
This file contains 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
import chai, { expect } from 'chai'; | |
import request from 'supertest'; | |
import app from '../server/app'; | |
let token; | |
describe ('POST /api/v1/auth/login', () => { | |
it('should sign in a user', (done) => { | |
request(app) | |
.post('/api/v1/auth/login') |