Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
web-et-numerique
LLLE_Project
Ecolyo
Commits
cdd34b7d
Commit
cdd34b7d
authored
Jan 20, 2022
by
Guilhem CARRON
Browse files
fix test
parent
4118d749
Changes
1
Show whitespace changes
Inline
Side-by-side
src/components/Analysis/ElecHalfHourMonthlyAnalysis.spec.tsx
View file @
cdd34b7d
...
...
@@ -10,7 +10,7 @@ import {
mockEnedisMonthlyAnalysisArray
,
}
from
'
../../../tests/__mocks__/enedisMonthlyAnalysisData.mock
'
import
{
PerformanceIndicator
}
from
'
models
'
import
{
allFluidPrices
}
from
'
../../../tests/__mocks__/fluidPrice.mock
'
import
{
all
Last
FluidPrices
}
from
'
../../../tests/__mocks__/fluidPrice.mock
'
jest
.
mock
(
'
cozy-ui/transpiled/react/I18n
'
,
()
=>
{
return
{
...
...
@@ -73,7 +73,7 @@ describe('ElecHalfHourMonthlyAnalysis component', () => {
it
(
'
should be rendered correctly when isHalfHourActivated is false
'
,
async
()
=>
{
mockCheckDoctypeEntries
.
mockResolvedValueOnce
(
false
)
mockGetPrices
.
mockResolvedValue
(
allFluidPrices
[
0
])
mockGetPrices
.
mockResolvedValue
(
all
Last
FluidPrices
[
0
])
const
wrapper
=
mount
(
<
ElecHalfHourMonthlyAnalysis
analysisDate
=
{
DateTime
.
fromISO
(
'
2021-07-01T00:00:00.000Z
'
,
{
...
...
@@ -94,7 +94,7 @@ describe('ElecHalfHourMonthlyAnalysis component', () => {
mockAggregateValuesToDataLoad
.
mockResolvedValueOnce
(
mockDataLoadEnedisAnalysis
)
mockGetPrices
.
mockResolvedValue
(
allFluidPrices
[
0
])
mockGetPrices
.
mockResolvedValue
(
all
Last
FluidPrices
[
0
])
const
wrapper
=
mount
(
<
ElecHalfHourMonthlyAnalysis
...
...
@@ -116,7 +116,7 @@ describe('ElecHalfHourMonthlyAnalysis component', () => {
mockAggregateValuesToDataLoad
.
mockResolvedValueOnce
(
mockDataLoadEnedisAnalysis
)
mockGetPrices
.
mockResolvedValue
(
allFluidPrices
[
0
])
mockGetPrices
.
mockResolvedValue
(
all
Last
FluidPrices
[
0
])
const
wrapper
=
mount
(
<
ElecHalfHourMonthlyAnalysis
analysisDate
=
{
DateTime
.
fromISO
(
'
2021-07-01T00:00:00.000Z
'
,
{
...
...
@@ -142,7 +142,7 @@ describe('ElecHalfHourMonthlyAnalysis component', () => {
mockAggregateValuesToDataLoad
.
mockResolvedValueOnce
(
mockDataLoadEnedisAnalysis
)
mockGetPrices
.
mockResolvedValue
(
allFluidPrices
[
0
])
mockGetPrices
.
mockResolvedValue
(
all
Last
FluidPrices
[
0
])
const
wrapper
=
mount
(
<
ElecHalfHourMonthlyAnalysis
...
...
Guilhem CARRON
@gcarron
mentioned in commit
17f81206
·
Jan 21, 2022
mentioned in commit
17f81206
mentioned in commit 17f81206619bcea81328a08c8b12555eaaefb4b0
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment