SymphonyElectron/tests/getConfig.test.js

16 lines
402 B
JavaScript
Raw Normal View History

2017-02-26 19:58:48 -06:00
const getConfig = require('../js/getconfig');
// mock required so getConfig reads config from correct path
2017-03-09 12:12:28 -06:00
jest.mock('../js/utils/misc.js', function() {
2017-02-26 19:58:48 -06:00
return {
isDevEnv: false,
isMac: false
}
});
test('getConfig should have proper url', function() {
return getConfig(false).then(function(result) {
2017-02-26 20:47:23 -06:00
expect(result.url).toBe('https://my.symphony.com');
2017-02-26 19:58:48 -06:00
});
});