UNPKG

node-google-vision

Version:
28 lines (24 loc) 597 B
'use strict' const Mocha = require('mocha') const mocha = new Mocha({}) const debug = require('debug')('node-google-vision:test') // Test suites mocha.addFile(__dirname + '/integration/vision.js') mocha.run() .on('test', function(test) { }) .on('test end', function(test) { }) .on('pass', function(test) { }) .on('fail', function(test, err) { if (process.env.NOTIFY == 1) { debug({ 'title': test.title, 'message': test.file }) } }) .on('end', function() { process.exit() })