blob: 126f73103e0820fb7616e6e4285f5fa24f6fd1f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
import projectImportGitlab from '~/projects/project_import_gitlab_project';
describe('Import Gitlab project', () => {
let projectName;
beforeEach(() => {
projectName = 'project';
window.history.pushState({}, null, `?path=${projectName}`);
setFixtures(`
<input class="js-path-name" />
`);
projectImportGitlab();
});
afterEach(() => {
window.history.pushState({}, null, '');
});
describe('path name', () => {
it('should fill in the project name derived from the previously filled project name', () => {
expect(document.querySelector('.js-path-name').value).toEqual(projectName);
});
});
});
|