12 lines
341 B
TypeScript
12 lines
341 B
TypeScript
|
import { configuredStore } from '../../common/store';
|
||
|
|
||
|
export function getInitialState() {
|
||
|
return { ...configuredStore.getState() };
|
||
|
}
|
||
|
|
||
|
export function testShallowlyEqual(oldValue: any, newValue: any) {
|
||
|
it('should be shallowly equal when called again with the same state', () => {
|
||
|
expect(oldValue === newValue).toBeTruthy();
|
||
|
});
|
||
|
}
|