mirror of
https://github.com/fergalmoran/onearmy-community-platform.git
synced 2025-12-22 09:37:54 +00:00
fix(impact): change $ to USD (#3674)
This commit is contained in:
@@ -63,7 +63,7 @@ describe('Impact', () => {
|
||||
|
||||
await screen.findByText('45 volunteers')
|
||||
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')
|
||||
expect(machineField).toBe(null)
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ describe('ImpactItem', () => {
|
||||
</Provider>,
|
||||
)
|
||||
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)
|
||||
})
|
||||
|
||||
@@ -23,9 +23,9 @@ export const impactQuestions: IImpactQuestion[] = [
|
||||
id: 'revenue',
|
||||
icon: 'revenue',
|
||||
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',
|
||||
prefix: '$',
|
||||
prefix: 'USD',
|
||||
isVisible: true,
|
||||
},
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
describe('transformImpactData', () => {
|
||||
it('returns data structured as field inputs', () => {
|
||||
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 = [
|
||||
{
|
||||
@@ -24,7 +24,7 @@ describe('transformImpactData', () => {
|
||||
icon: 'revenue',
|
||||
description,
|
||||
label: 'revenue',
|
||||
prefix: '$',
|
||||
prefix: 'USD',
|
||||
value: 75000,
|
||||
isVisible: false,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user