Started testing xos-backbone spare functions
diff --git a/xos/core/xoslib/spec/xoslib/xos-backbone.test.js b/xos/core/xoslib/spec/xoslib/xos-backbone.test.js
index 32f1551..2d50a34 100644
--- a/xos/core/xoslib/spec/xoslib/xos-backbone.test.js
+++ b/xos/core/xoslib/spec/xoslib/xos-backbone.test.js
@@ -1,5 +1,27 @@
'use strict';
+describe('The Xos Backbone', () => {
+ describe('get_defaults mehod', () => {
+
+ beforeEach(() => {
+ xosdefaults = {
+ test: {config: true}
+ };
+ });
+
+ it('should return default config', () => {
+ let res = get_defaults('test');
+ expect(res).toEqual({config: true});
+ });
+
+ it('should return undefined', () => {
+ let res = get_defaults('notset');
+ expect(res).toBeUndefined();
+ });
+
+ });
+});
+
describe('The XOSModel', () => {
var model;
diff --git a/xos/core/xoslib/static/js/xoslib/xos-defaults.js b/xos/core/xoslib/static/js/xoslib/xos-defaults.js
index 4c38f3a..12d2755 100644
--- a/xos/core/xoslib/static/js/xoslib/xos-defaults.js
+++ b/xos/core/xoslib/static/js/xoslib/xos-defaults.js
@@ -1,3 +1,4 @@
+/* eslint indent: [2, 2]*/
function xos_get_defaults() {
this.account = {"updated": null, "policed": null, "created": null, "deleted": false, "site": null, "lazy_blocked": false, "backend_register": "{}", "write_protect": false, "backend_status": "0 - Provisioning in progress", "no_sync": false, "enacted": null};
this.charge = {"updated": null, "slice": null, "date": null, "policed": null, "created": null, "deleted": false, "object": null, "account": null, "lazy_blocked": false, "backend_register": "{}", "write_protect": false, "amount": 0.0, "state": "pending", "invoice": null, "coreHours": 0.0, "backend_status": "0 - Provisioning in progress", "kind": "besteffort", "no_sync": false, "enacted": null};