Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasecdb committed May 20, 2021
1 parent 26b5f7a commit f55deb3
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions react/TranslateEstimate.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react'

import TranslateEstimate from './TranslateEstimate'
import { renderWithIntl, cleanup } from '../test-utils' // eslint-disable-line import/named

Expand Down Expand Up @@ -121,7 +122,7 @@ describe('TranslateEstimate - Valid Values', () => {
<TranslateEstimate shippingEstimate="0d" />
)

const expectedLabel = 'Same day'
const expectedLabel = 'Today'

expect(getByText(expectedLabel).textContent).toBe(expectedLabel)
})
Expand Down Expand Up @@ -155,7 +156,7 @@ describe('TranslateEstimate - Valid Values', () => {
<TranslateEstimate shippingEstimate="0bd" />
)

const expectedLabel = 'Same day'
const expectedLabel = 'Today'

expect(getByText(expectedLabel).textContent).toBe(expectedLabel)
})
Expand Down Expand Up @@ -257,7 +258,7 @@ describe('TranslateEstimate - Valid Values', () => {
<TranslateEstimate shippingEstimate="0d" isPickup />
)

const expectedLabel = 'Ready in the same day'
const expectedLabel = 'Ready today'

expect(getByText(expectedLabel).textContent).toBe(expectedLabel)
})
Expand Down Expand Up @@ -291,7 +292,7 @@ describe('TranslateEstimate - Valid Values', () => {
<TranslateEstimate shippingEstimate="0bd" isPickup />
)

const expectedLabel = 'Ready in the same day'
const expectedLabel = 'Ready today'

expect(getByText(expectedLabel).textContent).toBe(expectedLabel)
})
Expand Down Expand Up @@ -336,7 +337,7 @@ describe('TranslateEstimate - Valid Values', () => {
})
})

describe('Scheduled delivery/pickup', () => {
describe('Scheduled delivery', () => {
afterEach(cleanup)

it('should return correct for a scheduled delivery with no delivery window', () => {
Expand Down

0 comments on commit f55deb3

Please sign in to comment.