File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2,25 +2,25 @@ import locale, { initalState } from '../data/locale';
2
2
3
3
describe ( 'locale reducer' , ( ) => {
4
4
it ( 'should return the initial state' , ( ) => {
5
- expect ( themes ( undefined , { } ) ) . toBe ( initalState ) ;
5
+ expect ( locale ( undefined , { } ) ) . toBe ( initalState ) ;
6
6
} ) ;
7
7
8
8
it ( 'should return with en-US selected' , ( ) => {
9
- expect ( themes ( initalState , {
9
+ expect ( locale ( initalState , {
10
10
type : 'CHANGE_LOCALE' ,
11
11
id : 'en-US' ,
12
12
} ) . selected . id ) . toBe ( 'en-US' ) ;
13
13
} ) ;
14
14
15
15
it ( 'should return with fr-FR selected' , ( ) => {
16
- expect ( themes ( initalState , {
16
+ expect ( locale ( initalState , {
17
17
type : 'CHANGE_LOCALE' ,
18
18
id : 'fr-FR' ,
19
19
} ) . selected . id ) . toBe ( 'fr-FR' ) ;
20
20
} ) ;
21
21
22
22
it ( 'should return with ja-JP selected' , ( ) => {
23
- expect ( themes ( initalState , {
23
+ expect ( locale ( initalState , {
24
24
type : 'CHANGE_LOCALE' ,
25
25
id : 'ja-JP' ,
26
26
} ) . selected . id ) . toBe ( 'ja-JP' ) ;
You can’t perform that action at this time.
0 commit comments