Skip to content

Commit

Permalink
Use path.relative in another place
Browse files Browse the repository at this point in the history
  • Loading branch information
brianseeders committed Mar 16, 2020
1 parent 440b7c9 commit ae7ccf4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
import { sep } from 'path';
import { relative } from 'path';
import { REPO_ROOT } from '@kbn/dev-utils';
import { createAssignmentProxy } from './assignment_proxy';
import { wrapFunction } from './wrap_function';
Expand Down Expand Up @@ -66,7 +66,7 @@ export function decorateMochaUi(lifecycle, context) {
this._tags = [].concat(this._tags || [], tags);
};

const relativeFilePath = this.file.replace(REPO_ROOT + sep, '');
const relativeFilePath = relative(REPO_ROOT, this.file);
this.tags(relativeFilePath);
this.suiteTag = relativeFilePath; // The tag that uniquely targets this suite/file

Expand Down

0 comments on commit ae7ccf4

Please sign in to comment.