-
-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathusers.test.js
More file actions
28 lines (20 loc) · 594 Bytes
/
Copy pathusers.test.js
File metadata and controls
28 lines (20 loc) · 594 Bytes
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
import { getUserFake } from 'jest-discord-fakes';
import { isBot } from './users';
describe('isBot', () => {
test('Identifies bots', () => {
const user = getUserFake();
expect(isBot(user)).toBe(false);
user.bot = true;
expect(isBot(user)).toBe(true);
});
});
describe('getNickname', () => {
test.todo('Handles no guild');
test.todo('Handles a user object');
test.todo('Handles a GuildMember object');
test.todo('Handles a nickname');
test.todo('Handles no nickname');
});
describe('isStreaming', () => {
test.todo('Identifies a streaming activity');
});