Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/repository/components/table/row_spec.js')
-rw-r--r--spec/frontend/repository/components/table/row_spec.js11
1 files changed, 5 insertions, 6 deletions
diff --git a/spec/frontend/repository/components/table/row_spec.js b/spec/frontend/repository/components/table/row_spec.js
index 9bff801dbf0..80471d8734b 100644
--- a/spec/frontend/repository/components/table/row_spec.js
+++ b/spec/frontend/repository/components/table/row_spec.js
@@ -146,11 +146,10 @@ describe('Repository table row component', () => {
});
it.each`
- path | encodedPath
- ${'test#'} | ${'test%23'}
- ${'Ă„nderungen'} | ${'%C3%84nderungen'}
- ${'dir%2f_hello__.sh'} | ${'dir%252f_hello__.sh'}
- `('renders link for $path', ({ path, encodedPath }) => {
+ path
+ ${'test#'}
+ ${'Ă„nderungen'}
+ `('renders link for $path', ({ path }) => {
factory({
propsData: {
id: '1',
@@ -162,7 +161,7 @@ describe('Repository table row component', () => {
});
expect(wrapper.findComponent({ ref: 'link' }).props('to')).toBe(
- `/-/tree/main/${encodedPath}?ref_type=heads`,
+ `/-/tree/main/${encodeURIComponent(path)}?ref_type=heads`,
);
});