12 lines
326 B
TypeScript
12 lines
326 B
TypeScript
import configuredStore from './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();
|
|
});
|
|
}
|