blob: 5fd062a263ad0c2896f7bcfa2cb59d6a3c240535 [file] [log] [blame]
'use strict'
const path = require('path')
const PathUtils = {
formatPathMapping (path, line, column) {
return path + (line ? `:${line}` : '') + (column ? `:${column}` : '')
},
calculateAbsolutePath (karmaRelativePath) {
return path.join(__dirname, '..', '..', karmaRelativePath)
}
}
module.exports = PathUtils