mirror of
https://github.com/yldio/copilot.git
synced 2024-11-14 23:30:05 +02:00
style(portal-api): format
This commit is contained in:
parent
663bc9be9d
commit
cc9dc08247
@ -2519,7 +2519,7 @@ class Data extends EventEmitter {
|
||||
return metric;
|
||||
});
|
||||
|
||||
cb(null, metrics);
|
||||
cb(null, formattedMetrics);
|
||||
});
|
||||
});
|
||||
}).catch((err) => {
|
||||
|
@ -4,7 +4,6 @@ const Brule = require('brule');
|
||||
const Good = require('good');
|
||||
const Hapi = require('hapi');
|
||||
const Toppsy = require('toppsy');
|
||||
const Pack = require('./package');
|
||||
const Portal = require('./lib');
|
||||
|
||||
const server = new Hapi.Server();
|
||||
|
@ -1,7 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
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');
|
||||
|
||||
|
||||
@ -31,7 +31,7 @@ describe('getMetrics()', () => {
|
||||
};
|
||||
|
||||
const service = {
|
||||
instances: () => Promise.resolve([instance])
|
||||
instances: () => { return Promise.resolve([instance]); }
|
||||
};
|
||||
|
||||
next(null, [service]);
|
||||
|
@ -1,6 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
const { it, expect } = exports.lab = require('lab').script();
|
||||
const { it } = exports.lab = require('lab').script();
|
||||
const Uuid = require('uuid/v4');
|
||||
|
||||
const ContainerPilotWatch = require('../../lib/watch/container-pilot');
|
||||
|
@ -1,6 +1,6 @@
|
||||
'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');
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user