Skip to content

Commit 9212d37

Browse files
committed
updated constants
1 parent 381224a commit 9212d37

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/reducers/currency-rates-reducer.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import Immutable from 'seamless-immutable';
44
const RATES_MOCK = { 'PLN': 1, 'SEK': 2.1919 };
55

66
// Action Types - LOAD, CREATE, UPDATE, REMOVE
7-
const LOAD_CURRENCY_RATES = 'currencyRates/LOAD';
8-
const LOAD_CURRENCY_RATES_SUCCESS = 'currencyRates/LOAD_SUCCESS';
9-
const LOAD_CURRENCY_RATES_ERROR = 'currencyRates/LOAD_ERROR';
7+
const LOAD_CURRENCY_RATES = 'currencyRates/LOAD_CURRENCY_RATES';
8+
const LOAD_CURRENCY_RATES_SUCCESS = 'currencyRates/LOAD_CURRENCY_RATES_SUCCESS';
9+
const LOAD_CURRENCY_RATES_ERROR = 'currencyRates/LOAD_CURRENCY_RATES_ERROR';
1010

1111
// Action Creators
1212
export const loadCurrencyRates = createAction(LOAD_CURRENCY_RATES);

src/reducers/tests/currency-rates-reducer.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ test('testing action creator currencyRatesFetchSuccess', function(t) {
1818
// act
1919
const actual = currencyRatesActions.loadCurrencyRatesSuccess(results);
2020
const expected = {
21-
type: 'currencyRates/LOAD_SUCCESS',
21+
type: 'currencyRates/LOAD_CURRENCY_RATES_SUCCESS',
2222
payload: results
2323
};
2424

@@ -35,7 +35,7 @@ test('testing action creator currencyRatesFetchError', function(t) {
3535
// act
3636
const actual = currencyRatesActions.loadCurrencyRatesError(errorMessage);
3737
const expected = {
38-
type: 'currencyRates/LOAD_ERROR',
38+
type: 'currencyRates/LOAD_CURRENCY_RATES_ERROR',
3939
payload: errorMessage
4040
};
4141

0 commit comments

Comments
 (0)