Fix order of logFailure definition and its usage in unittests.html

This commit is contained in:
evilaliv3 2016-01-08 11:02:25 +01:00
parent e2e72e8de4
commit ec2a3990ff

View File

@ -32,8 +32,6 @@
window.mochaResults.reports = failedTests;
});
runner.on('fail', logFailure);
function logFailure(test, err) {
var flattenTitles = function(test) {
var titles = [];
@ -46,6 +44,8 @@
failedTests.push({name: test.title, result: false, message: err.message, stack: err.stack, titles: flattenTitles(test)});
};
runner.on('fail', logFailure);
}
</script>
</body>