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('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)
|
||||||
|
|
||||||
|
|||||||
@@ -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)
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -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,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user