Follow-up from "Upgrade prettier to v1.15.2"
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
The following discussion from gitlab-ce!22893 should be addressed:
-
@ClemMakesApps started a discussion: (+2 comments) Did we intentionally add this regex?
We use replace(/\s\s+/g, ' ')
in a lot of places within our frontend tests to normalize text whitespace within DOM nodes prior to trying to match them. We ought to use an existing utility function for this (like trimText
in vue_component_helper.js) or a custom jasmine matcher.
Edited by 🤖 GitLab Bot 🤖