Use redirectParam in assertion

parent 5e046fe6
......@@ -72,7 +72,7 @@ describe('EE - ApiFuzzingConfigurationSnippetModal', () => {
text: expect.any(Function),
});
expect(redirectTo).toHaveBeenCalledWith(
`http://gitlab.local${gitlabCiYamlEditPath}?code_snippet_copied_from=foo`,
`http://gitlab.local${gitlabCiYamlEditPath}?code_snippet_copied_from=${redirectParam}`,
);
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment