Testing Main Module
You can run code from main module in isolation for testing purposes
Last updated
myIntegration.doLookup(entities, options, function(err, result){
if(err){
console.info("ERRORS:");
console.info(JSON.stringify(err, null, 4));
}else{
console.info("RESULTS:");
console.info(JSON.stringify(result, null, 4));
}
});node test-runner.js'use strict';
let myIntegration = require('./integration');
let options = {
apiKey: '<set your api key>',
warnOnLookupLimit: true
};
let entities = [
{
value: 'fd904addbdfe548c22ffa5223ed9eee7',
isHash: true
},
{
value: '95.108.142.138',
isIPv4: true
}
];
myIntegration.doLookup(entities, options, function(err, result){
if(err){
console.info("ERRORS:");
console.info(JSON.stringify(err, null, 4));
}else{
console.info("RESULTS:");
console.info(JSON.stringify(result, null, 4));
}
});