mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
15
tests/config.test.js
Normal file
15
tests/config.test.js
Normal file
@@ -0,0 +1,15 @@
|
||||
const { getConfigField } = require('../js/config');
|
||||
|
||||
// mock required so getConfig reads config from correct path
|
||||
jest.mock('../js/utils/misc.js', function() {
|
||||
return {
|
||||
isDevEnv: false,
|
||||
isMac: false
|
||||
}
|
||||
});
|
||||
|
||||
test('getConfig should have proper url', function() {
|
||||
return getConfigField('url').then(function(url) {
|
||||
expect(url).toBe('https://my.symphony.com');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user