-
-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathtriggers.test.js
More file actions
59 lines (43 loc) · 1.33 KB
/
Copy pathtriggers.test.js
File metadata and controls
59 lines (43 loc) · 1.33 KB
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
// import {
// botString,
// botMention,
// botMentionTrigger,
// dotTrigger,
// exclamationTrigger,
// customTrigger,
// bracketTrigger,
// messageTriggered,
// } from '../triggers';
// jest.mock('../../../aquarius.js', () => ({}));
describe('botString', () => {
test.todo('Returns the client user string');
});
describe('botMention', () => {
test.todo('Constructs a Discord-mention regex');
});
describe('botMentionTrigger', () => {
test.todo('Checks for a bot mention at the beginning of the message');
});
describe('dotTrigger', () => {
test.todo('Checks for a period at the beginning of the message');
});
describe('exclamationTrigger', () => {
test.todo('Checks for an exclamation mark at the beginning of the message');
});
describe('customTrigger', () => {
test.todo('Ignores bot messages');
test.todo('Matches the message with a custom regex');
// mimi <3
});
describe('bracketTrigger', () => {
test.todo('Ignores bot messages');
test.todo('Checks for double-bracket strings');
test.todo('Returns list of all double bracketed names');
test.todo('Nested brackets do not break');
});
describe('messageTriggered', () => {
test.todo('Ignores bot messages');
test.todo('Responds to a bot mention');
test.todo('Responds to a dot trigger');
test.todo('Responds to an exclamation mark trigger');
});