All files / src config.js

66.67% Statements 4/6
50% Branches 2/4
100% Functions 0/0
66.67% Lines 4/6
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18                  73x 10x   63x     19x    
 
export default {
    config: {},
    init(initObject) {
        if (initObject) {
            Object.assign(this.config, initObject);
        }
    },
    get(key) {
        if (this.config[key]) {
            return this.config[key];
        }
        return '';
    },
    set(objectToSet) {
        Object.assign(this.config, objectToSet);
    }
};