summaryrefslogtreecommitdiff
path: root/spec/javascripts/notes/stores/actions_spec.js
blob: 18b1c2c8f6ff6ff9db403dbc580b290885462ab1 (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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96

import * as actions from '~/notes/stores/actions';

describe('Actions Notes Store', () => {
  describe('setNotesData', () => {
    it('should set received notes data', () => {

    });
  });

  describe('setIssueData', () => {
    it('should set received issue data', () => {});
  });

  describe('setUserData', () => {
    it('should set received user data', () => {});
  });

  describe('setLastFetchedAt', () => {
    it('should set received timestamp', () => {});
  });

  describe('setInitialNotes', () => {
    it('should set initial notes', () => {

    });
  });

  describe('setTargetNoteHash', () => {
    it('should set target note hash', () => {});
  });

  describe('toggleDiscussion', () => {
    it('should toggle discussion', () => {

    });
  });

  describe('fetchNotes', () => {
    it('should request notes', () => {

    });
  });

  describe('deleteNote', () => {
    it('should delete note', () => {});
  });

  describe('updateNote', () => {
    it('should update note', () => {

    });
  });

  describe('replyToDiscussion', () => {
    it('should add a reply to a discussion', () => {

    });
  });

  describe('createNewNote', () => {
    it('should create a new note', () => {});
  });

  describe('saveNote', () => {
    it('should save the received note', () => {

    });
  });

  describe('poll', () => {
    it('should start polling the received endoint', () => {

    });
  });

  describe('toggleAward', () => {
    it('should toggle received award', () => {

    });
  });

  describe('toggleAwardRequest', () => {
    it('should make a request to toggle the award', () => {

    });
  });

  describe('scrollToNoteIfNeeded', () => {
    it('should call `scrollToElement` if note is not in viewport', () => {
    });

    it('should note call `scrollToElement` if note is in viewport', () => {
    });
  });
});