fix(impact): change $ to USD (#3674)

This commit is contained in:
Eva Killenberg
2024-06-18 06:59:24 -04:00
committed by GitHub
parent 79ef500b8e
commit d7dc9b2f80
4 changed files with 6 additions and 6 deletions

View File

@@ -63,7 +63,7 @@ describe('Impact', () => {
await screen.findByText('45 volunteers') await screen.findByText('45 volunteers')
await screen.findByText('23,000 Kg of plastic recycled') await screen.findByText('23,000 Kg of plastic recycled')
await screen.findByText('$ 54,000 revenue') await screen.findByText('USD 54,000 revenue')
const machineField = screen.queryByText('13 machines built') const machineField = screen.queryByText('13 machines built')
expect(machineField).toBe(null) expect(machineField).toBe(null)

View File

@@ -40,7 +40,7 @@ describe('ImpactItem', () => {
</Provider>, </Provider>,
) )
const plasticItem = await screen.findByText('30,000 Kg of plastic recycled') const plasticItem = await screen.findByText('30,000 Kg of plastic recycled')
const revenueItem = await screen.findByText('$ 54,000 revenue') const revenueItem = await screen.findByText('USD 54,000 revenue')
expect(plasticItem.compareDocumentPosition(revenueItem)).toBe(4) expect(plasticItem.compareDocumentPosition(revenueItem)).toBe(4)
}) })

View File

@@ -23,9 +23,9 @@ export const impactQuestions: IImpactQuestion[] = [
id: 'revenue', id: 'revenue',
icon: 'revenue', icon: 'revenue',
description: description:
'What was your revenue (in $)? By revenue we mean all money coming in.', 'What was your revenue (in USD)? By revenue we mean all money coming in.',
label: 'revenue', label: 'revenue',
prefix: '$', prefix: 'USD',
isVisible: true, isVisible: true,
}, },
{ {

View File

@@ -9,7 +9,7 @@ import {
describe('transformImpactData', () => { describe('transformImpactData', () => {
it('returns data structured as field inputs', () => { it('returns data structured as field inputs', () => {
const description = const description =
'What was your revenue (in $)? By revenue we mean all money coming in.' 'What was your revenue (in USD)? By revenue we mean all money coming in.'
const impactFields = [ const impactFields = [
{ {
@@ -24,7 +24,7 @@ describe('transformImpactData', () => {
icon: 'revenue', icon: 'revenue',
description, description,
label: 'revenue', label: 'revenue',
prefix: '$', prefix: 'USD',
value: 75000, value: 75000,
isVisible: false, isVisible: false,
}, },