style(portal-api): format
This commit is contained in:
parent
663bc9be9d
commit
cc9dc08247
@ -2519,7 +2519,7 @@ class Data extends EventEmitter {
|
|||||||
return metric;
|
return metric;
|
||||||
});
|
});
|
||||||
|
|
||||||
cb(null, metrics);
|
cb(null, formattedMetrics);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
|
@ -4,7 +4,6 @@ const Brule = require('brule');
|
|||||||
const Good = require('good');
|
const Good = require('good');
|
||||||
const Hapi = require('hapi');
|
const Hapi = require('hapi');
|
||||||
const Toppsy = require('toppsy');
|
const Toppsy = require('toppsy');
|
||||||
const Pack = require('./package');
|
|
||||||
const Portal = require('./lib');
|
const Portal = require('./lib');
|
||||||
|
|
||||||
const server = new Hapi.Server();
|
const server = new Hapi.Server();
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const Http = require('http');
|
const Http = require('http');
|
||||||
const { describe, it, beforeEach, expect } = exports.lab = require('lab').script();
|
const { describe, it, expect } = exports.lab = require('lab').script();
|
||||||
const PortalData = require('../../lib/data');
|
const PortalData = require('../../lib/data');
|
||||||
|
|
||||||
|
|
||||||
@ -31,7 +31,7 @@ describe('getMetrics()', () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const service = {
|
const service = {
|
||||||
instances: () => Promise.resolve([instance])
|
instances: () => { return Promise.resolve([instance]); }
|
||||||
};
|
};
|
||||||
|
|
||||||
next(null, [service]);
|
next(null, [service]);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const { it, expect } = exports.lab = require('lab').script();
|
const { it } = exports.lab = require('lab').script();
|
||||||
const Uuid = require('uuid/v4');
|
const Uuid = require('uuid/v4');
|
||||||
|
|
||||||
const ContainerPilotWatch = require('../../lib/watch/container-pilot');
|
const ContainerPilotWatch = require('../../lib/watch/container-pilot');
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const { describe, it, expect } = exports.lab = require('lab').script();
|
const { it, expect } = exports.lab = require('lab').script();
|
||||||
const PortalWatch = require('../../lib/watch/machines');
|
const PortalWatch = require('../../lib/watch/machines');
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user