Skip to content

Commit c467f07

Browse files
authored
Chore: Move club_40_gifs.json into points folder (#707)
* Copied club_40_gifs.json to points directory * Moved club-40-gifs.json to bot-commands/points/ dir and renamed to snake case * Renamed the relevant imports. Last commit meant "Renamed to kebab case" * Fixed the relevant imports * Deleted club-40 folder
1 parent da3fc79 commit c467f07

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

bot-commands/points/award-points.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const axios = require('axios');
22
const config = require('../../config');
3-
const club40Gifs = require('../club-40/club_40_gifs.json');
3+
const club40Gifs = require('./club-40-gifs.json');
44
const { isAdmin } = require('../../utils/is-admin');
55

66
axios.default.defaults.headers.common.Authorization = `Token ${config.pointsbot.token}`;
File renamed without changes.

bot-commands/points/points.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const gifContainer = [
2222
},
2323
];
2424

25-
jest.mock('../club-40/club_40_gifs.json', () => gifContainer);
25+
jest.mock('./club-40-gifs.json', () => gifContainer);
2626

2727
jest.mock('discord.js', () => ({
2828
...jest.requireActual('discord.js'),

0 commit comments

Comments
 (0)