Skip to content

Commit

Permalink
(BSR)[PRO] fix: unit tests on master
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbericTrancart committed Apr 3, 2023
1 parent d468e74 commit 569695b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import {
} from 'core/Offers/utils/getOfferIndividualUrl'
import { renderWithProviders } from 'utils/renderWithProviders'

import { serializeThingBookingLimitDatetime } from '../adapters/serializers'
import StocksThing, { IStocksThingProps } from '../StocksThing'

jest.mock('screens/OfferIndividual/Informations/utils', () => {
Expand Down Expand Up @@ -372,7 +373,7 @@ describe('screens:StocksThing', () => {
quantity: 5,
activationCodes: ['ABH', 'JHB', 'IOP', 'KLM', 'MLK'],
activationCodesExpirationDatetime:
date.toISOString().slice(0, -5) + 'Z',
serializeThingBookingLimitDatetime(date, '75'),
},
],
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { getUtcDateTimeFromLocalDepartement } from 'utils/timezone'

import { IStockThingFormValues } from '../'

const serializeThingBookingLimitDatetime = (
export const serializeThingBookingLimitDatetime = (
bookingLimitDatetime: Date,
departementCode: string
) => {
Expand Down

0 comments on commit 569695b

Please sign in to comment.