style(portal-api): format

This commit is contained in:
Sérgio Ramos 2017-08-21 17:11:49 +01:00
parent 663bc9be9d
commit cc9dc08247
5 changed files with 5 additions and 6 deletions

View File

@ -2519,7 +2519,7 @@ class Data extends EventEmitter {
return metric;
});
cb(null, metrics);
cb(null, formattedMetrics);
});
});
}).catch((err) => {

View File

@ -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();

View File

@ -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]);

View File

@ -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');

View File

@ -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');