summaryrefslogtreecommitdiff
path: root/spec/javascripts/vue_common_components/commit_spec.js.es6
blob: d71220e86ed58cb1c95be7e0fbcc6e1ab5500f77 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
//= require vue
/*= require ./vue_common_components/commit */

describe('Commit component', () => {
  describe('When `ref` is provided', () => {
    it('should render a tag icon if it represents a tag', () => {

    });

    it('should render a code-fork icon if it does not represent a tag', () => {

    });

    it('should render a link to the ref url', () => {

    });

    it('should render the ref name', () => {

    });
  });
});

it('should render the commit icon as an svg', () => {

});

it('should render the commit short sha with a link to the commit url', () => {

});

describe('Given commit title and author props', () => {
  it('Should render a link to the author profile', () => {

  });

  it('Should render the author avatar with title and alt attributes', () => {

  });
});

describe('When commit title is not provided', () => {
  it('Should render default message', () => {

  });
});

describe('Given no ref prop', () => {
  it('Should render without errors', () => {

  });
});

describe('Given no title prop', () => {
  it('Should render without errors', () => {

  });
});

describe('Given no author prop', () => {
  it('Should render without errors', () => {

  });
});