summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2018-04-23 12:34:05 +0100
committerFilipa Lacerda <filipa@gitlab.com>2018-04-23 12:34:05 +0100
commitd7642137fb4268e38b2b5c68cefd5c7cd4654144 (patch)
treef8dc701c14dd0a4725ca05efdd2c8dbd52d583d8
parent192df7d931e002163459541be820cebb46a1aebf (diff)
downloadgitlab-ce-d7642137fb4268e38b2b5c68cefd5c7cd4654144.tar.gz
Fix eslint
-rw-r--r--spec/javascripts/vue_shared/components/commit_spec.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/spec/javascripts/vue_shared/components/commit_spec.js b/spec/javascripts/vue_shared/components/commit_spec.js
index 74c6fbba7ee..7189e8cfcfa 100644
--- a/spec/javascripts/vue_shared/components/commit_spec.js
+++ b/spec/javascripts/vue_shared/components/commit_spec.js
@@ -66,7 +66,7 @@ describe('Commit component', () => {
it('should render a link to the ref url', () => {
expect(component.$el.querySelector('.ref-name').getAttribute('href')).toEqual(
- props.commitRef.ref_url
+ props.commitRef.ref_url,
);
});
@@ -76,21 +76,21 @@ describe('Commit component', () => {
it('should render the commit short sha with a link to the commit url', () => {
expect(component.$el.querySelector('.commit-sha').getAttribute('href')).toEqual(
- props.commitUrl
+ props.commitUrl,
);
expect(component.$el.querySelector('.commit-sha').textContent).toContain(props.shortSha);
});
it('should render icon for commit', () => {
expect(
- component.$el.querySelector('.js-commit-icon use').getAttribute('xlink:href')
+ component.$el.querySelector('.js-commit-icon use').getAttribute('xlink:href'),
).toContain('commit');
});
describe('Given commit title and author props', () => {
it('should render a link to the author profile', () => {
expect(
- component.$el.querySelector('.commit-title .avatar-image-container').getAttribute('href')
+ component.$el.querySelector('.commit-title .avatar-image-container').getAttribute('href'),
).toEqual(props.author.path);
});
@@ -98,22 +98,22 @@ describe('Commit component', () => {
expect(
component.$el
.querySelector('.commit-title .avatar-image-container img')
- .getAttribute('data-original-title')
+ .getAttribute('data-original-title'),
).toContain(props.author.username);
expect(
component.$el
.querySelector('.commit-title .avatar-image-container img')
- .getAttribute('alt')
+ .getAttribute('alt'),
).toContain(`${props.author.username}'s avatar`);
});
});
it('should render the commit title', () => {
expect(component.$el.querySelector('a.commit-row-message').getAttribute('href')).toEqual(
- props.commitUrl
+ props.commitUrl,
);
expect(component.$el.querySelector('a.commit-row-message').textContent).toContain(
- props.title
+ props.title,
);
});
});
@@ -136,7 +136,7 @@ describe('Commit component', () => {
component = mountComponent(CommitComponent, props);
expect(component.$el.querySelector('.commit-title span').textContent).toContain(
- "Can't find HEAD commit for this branch"
+ "Can't find HEAD commit for this branch",
);
});
});