Skip to content

Commit 36c307f

Browse files
committed
fixed ut errors
1 parent c1b3f4d commit 36c307f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/store/__tests__/locale.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@ import locale, { initalState } from '../data/locale';
22

33
describe('locale reducer', () => {
44
it('should return the initial state', () => {
5-
expect(themes(undefined, {})).toBe(initalState);
5+
expect(locale(undefined, {})).toBe(initalState);
66
});
77

88
it('should return with en-US selected', () => {
9-
expect(themes(initalState, {
9+
expect(locale(initalState, {
1010
type: 'CHANGE_LOCALE',
1111
id: 'en-US',
1212
}).selected.id).toBe('en-US');
1313
});
1414

1515
it('should return with fr-FR selected', () => {
16-
expect(themes(initalState, {
16+
expect(locale(initalState, {
1717
type: 'CHANGE_LOCALE',
1818
id: 'fr-FR',
1919
}).selected.id).toBe('fr-FR');
2020
});
2121

2222
it('should return with ja-JP selected', () => {
23-
expect(themes(initalState, {
23+
expect(locale(initalState, {
2424
type: 'CHANGE_LOCALE',
2525
id: 'ja-JP',
2626
}).selected.id).toBe('ja-JP');

0 commit comments

Comments
 (0)