提交 4a67f74d 编写于 作者: K Kushal Pandya

Merge branch 'nfriend-add-anchor-tag-to-release-block' into 'master'

Add `id` attribute to release blocks

See merge request gitlab-org/gitlab-ce!32360
......@@ -53,7 +53,7 @@ export default {
};
</script>
<template>
<div class="card">
<div :id="release.tag_name" class="card">
<div class="card-body">
<h2 class="card-title mt-0">
{{ release.name }}
......
......@@ -88,6 +88,10 @@ describe('Release block', () => {
vm.$destroy();
});
it("renders the block with an id equal to the release's tag name", () => {
expect(vm.$el.id).toBe('18.04');
});
it('renders release name', () => {
expect(vm.$el.textContent).toContain(release.name);
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册