osrm-backend/features/support/table_patch.js
2016-03-24 16:01:01 -07:00

12 lines
380 B
JavaScript

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);
};
};