File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
packages/compass-indexes/src/modules Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 11import { expect } from 'chai' ;
22
33import reducer , {
4- INITIAL_STATE ,
4+ COLL_INITIAL_STATE ,
55 switchToRegularIndexes ,
66 switchToSearchIndexes ,
77} from './index-view' ;
@@ -10,23 +10,23 @@ describe('index-view view module', function () {
1010 describe ( '#reducer' , function ( ) {
1111 context ( 'when an action is not valid' , function ( ) {
1212 it ( 'returns the state' , function ( ) {
13- expect ( reducer ( INITIAL_STATE , { type : 'test' } ) ) . to . equal (
14- INITIAL_STATE
13+ expect ( reducer ( COLL_INITIAL_STATE , { type : 'test' } ) ) . to . equal (
14+ COLL_INITIAL_STATE
1515 ) ;
1616 } ) ;
1717 } ) ;
1818
1919 context ( 'when an action is switchToRegularIndexes' , function ( ) {
2020 it ( 'state is regular-indexes' , function ( ) {
21- expect ( reducer ( INITIAL_STATE , switchToRegularIndexes ( ) ) ) . to . equal (
21+ expect ( reducer ( COLL_INITIAL_STATE , switchToRegularIndexes ( ) ) ) . to . equal (
2222 'regular-indexes'
2323 ) ;
2424 } ) ;
2525 } ) ;
2626
2727 context ( 'when an action is switchToSearchIndexes' , function ( ) {
2828 it ( 'state is search-indexes' , function ( ) {
29- expect ( reducer ( INITIAL_STATE , switchToSearchIndexes ( ) ) ) . to . equal (
29+ expect ( reducer ( COLL_INITIAL_STATE , switchToSearchIndexes ( ) ) ) . to . equal (
3030 'search-indexes'
3131 ) ;
3232 } ) ;
You can’t perform that action at this time.
0 commit comments