Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ecolyo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
web-et-numerique
Factory
LLLE_Project
Ecolyo
Commits
fc3d6467
Commit
fc3d6467
authored
6 months ago
by
Bastien DUMONT
Browse files
Options
Downloads
Patches
Plain Diff
add types
parent
1e22d980
No related branches found
No related tags found
1 merge request
!1253
feat(forms): re-use user values
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/Connection/SGEConnect/SgeConnectView.spec.tsx
+2
-1
2 additions, 1 deletion
src/components/Connection/SGEConnect/SgeConnectView.spec.tsx
with
2 additions
and
1 deletion
src/components/Connection/SGEConnect/SgeConnectView.spec.tsx
+
2
−
1
View file @
fc3d6467
import
{
render
,
screen
}
from
'
@testing-library/react
'
import
{
SgeStore
}
from
'
models
'
import
React
from
'
react
'
import
{
Provider
}
from
'
react-redux
'
import
{
BrowserRouter
}
from
'
react-router-dom
'
...
...
@@ -21,7 +22,7 @@ jest.mock('components/Hooks/useKonnectorAuth', () =>
// mock sge state with shouldLaunchAccount set to true
jest
.
mock
(
'
components/Connection/useForm
'
,
()
=>
({
useFormData
:
jest
.
fn
().
mockReturnValue
({
formData
:
{}
}),
createInitialSgeState
:
jest
.
fn
().
mockReturnValue
({
createInitialSgeState
:
jest
.
fn
<
SgeStore
,
[]
>
().
mockReturnValue
({
address
:
''
,
lastName
:
''
,
firstName
:
''
,
...
...
This diff is collapsed.
Click to expand it.
Bastien DUMONT
@bdumont
mentioned in commit
340de65e
·
6 months ago
mentioned in commit
340de65e
mentioned in commit 340de65e525e600318a65fa33ed1f590c74bc9de
Toggle commit list
Bastien DUMONT
@bdumont
mentioned in commit
4fdc0e26
·
6 months ago
mentioned in commit
4fdc0e26
mentioned in commit 4fdc0e26f1e8daeab08fc62a59ee26b5ddb7d9d0
Toggle commit list
Bastien DUMONT
@bdumont
mentioned in commit
04560af5
·
6 months ago
mentioned in commit
04560af5
mentioned in commit 04560af52851e63931d5f4439af767441eeba69a
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment