Commit 5bedd81b authored by Eric Eastwood's avatar Eric Eastwood

Account for "reopened" state

parent ca518945
......@@ -101,7 +101,7 @@ export default {
v-if="hasState"
class="fa"
:class="{
'issue-token-state-icon-open fa-circle-o': state === 'opened',
'issue-token-state-icon-open fa-circle-o': state === 'opened' || state === 'reopened',
'issue-token-state-icon-closed fa-minus': state === 'closed',
}"
:aria-label="state">
......
......@@ -91,6 +91,22 @@ describe('IssueToken', () => {
});
});
describe('`state: \'reopened\'`', () => {
beforeEach(() => {
vm = new IssueToken({
propsData: {
idKey,
displayReference,
state: 'reopened',
},
}).$mount();
});
it('shows green circle icon', () => {
expect(vm.$el.querySelector('.issue-token-state-icon-open.fa.fa-circle-o')).toBeDefined();
});
});
describe('`state: \'closed\'`', () => {
beforeEach(() => {
vm = new IssueToken({
......
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