client/hippo/__mocks__/config.js in hippo-fw-0.9.4 vs client/hippo/__mocks__/config.js in hippo-fw-0.9.5
- old
+ new
@@ -3,13 +3,13 @@
getItem() {
return '{}';
},
};
-const config = jest.genMockFromModule('../models/config');
-//
-// config.bootstrapUserData = jest.fn();
-// config.reset = jest.fn();
+const Config = jest.genMockFromModule('../models/config');
+const { default: DefaultConfig } = Config;
+const config = new DefaultConfig();
+
Object.defineProperty(config, 'api_path', {
value: '/api',
});
export default config;