mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2025-09-26 23:10:18 +00:00
push all website files
This commit is contained in:
24
website/functions/node_modules/power-assert-renderer-file/index.js
generated
vendored
Normal file
24
website/functions/node_modules/power-assert-renderer-file/index.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
'use strict';
|
||||
|
||||
var BaseRenderer = require('power-assert-renderer-base');
|
||||
var inherits = require('util').inherits;
|
||||
|
||||
function FileRenderer () {
|
||||
BaseRenderer.call(this);
|
||||
}
|
||||
inherits(FileRenderer, BaseRenderer);
|
||||
|
||||
FileRenderer.prototype.onStart = function (context) {
|
||||
this.filepath = context.source.filepath;
|
||||
this.lineNumber = context.source.line;
|
||||
};
|
||||
|
||||
FileRenderer.prototype.onEnd = function () {
|
||||
if (this.filepath) {
|
||||
this.write('# ' + [this.filepath, this.lineNumber].join(':'));
|
||||
} else {
|
||||
this.write('# at line: ' + this.lineNumber);
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = FileRenderer;
|
Reference in New Issue
Block a user