diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2019-01-06 17:57:15 +0300 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2019-01-06 17:57:15 +0300 |
commit | 30038a40b08618380422ff3307061ca8fcbe0003 (patch) | |
tree | 4ba060d8b308053ce6c98f897cc7ed6c4c34a0a2 /spec | |
parent | 7b325fa60c14ee3ebf31179ae20689573e93033f (diff) |
Fixed Data Attribute Test
Diffstat (limited to 'spec')
-rw-r--r-- | spec/javascripts/diffs/components/commit_item_spec.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/javascripts/diffs/components/commit_item_spec.js b/spec/javascripts/diffs/components/commit_item_spec.js index c4127aa494d..50e45f48af3 100644 --- a/spec/javascripts/diffs/components/commit_item_spec.js +++ b/spec/javascripts/diffs/components/commit_item_spec.js @@ -81,7 +81,7 @@ describe('diffs/components/commit_item', () => { expect(nameElement).toHaveAttr('href', commit.author.web_url); expect(nameElement).toHaveText(commit.author.name); expect(nameElement).toHaveClass('js-user-link'); - expect(nameElement).toHaveAttr('data-user-id', commit.author.id); + expect(nameElement.dataset.userId).toEqual(commit.author.id.toString()); }); describe('without commit description', () => { |