osrm-backend/features/support/table_patch.js

12 lines
380 B
JavaScript
Raw Normal View History

2016-03-04 15:11:05 -05:00
var DifferentError = require('./exception_classes').TableDiffError;
module.exports = function () {
this.diffTables = (expected, actual, options, callback) => {
// this is a temp workaround while waiting for https://github.com/cucumber/cucumber-js/issues/534
var error = new DifferentError(expected, actual);
return callback(error.string);
};
};