Last change
on this file since 59329aa was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
331 bytes
|
Line | |
---|
1 | 'use strict'
|
---|
2 |
|
---|
3 | const path = require('path')
|
---|
4 |
|
---|
5 | const PathUtils = {
|
---|
6 | formatPathMapping (path, line, column) {
|
---|
7 | return path + (line ? `:${line}` : '') + (column ? `:${column}` : '')
|
---|
8 | },
|
---|
9 |
|
---|
10 | calculateAbsolutePath (karmaRelativePath) {
|
---|
11 | return path.join(__dirname, '..', '..', karmaRelativePath)
|
---|
12 | }
|
---|
13 |
|
---|
14 | }
|
---|
15 |
|
---|
16 | module.exports = PathUtils
|
---|
Note:
See
TracBrowser
for help on using the repository browser.