saved layout (#62)

* saved layout

* fix fieldName check
This commit is contained in:
Lynn
2017-04-20 11:54:11 -07:00
committed by GitHub
parent 9785baacc3
commit 439f283916
11 changed files with 413 additions and 113 deletions
@@ -1,4 +1,4 @@
const getConfig = require('../js/getconfig');
const { getConfigField } = require('../js/config');
// mock required so getConfig reads config from correct path
jest.mock('../js/utils/misc.js', function() {
@@ -9,7 +9,7 @@ jest.mock('../js/utils/misc.js', function() {
});
test('getConfig should have proper url', function() {
return getConfig(false).then(function(result) {
expect(result.url).toBe('https://my.symphony.com');
return getConfigField('url').then(function(url) {
expect(url).toBe('https://my.symphony.com');
});
});