'use strict'; const path = require('path'); const Promise = require('bluebird'); const assert = require('assert'); const app = require(path.resolve(__dirname, '../server/server')); describe('EluDataScraper', function(){ describe('#getDataForElu', function(){ it('Test 1', function(){ return app.models.EluDataScraper.getDataForElu({ circonscription: 'trignac', firstname: 'david', lastname: 'pelon'}) .then(function(data){ console.log(data); }) }); }); });