Skip to content

Commit

Permalink
final fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kathund committed Feb 21, 2024
1 parent c3fc85b commit 5ffff4c
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 19 deletions.
2 changes: 2 additions & 0 deletions src/API/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ module.exports = {
getSkyblockAuctions: require('./skyblock/getSkyblockAuctions'),
getSkyblockAuctionsByPlayer: require('./skyblock/getSkyblockAuctionsByPlayer'),
getSkyblockBazaar: require('./skyblock/getSkyblockBazaar'),
getSkyblockBingo: require('./skyblock/getSkyblockBingo'),
getSkyblockBingoByPlayer: require('./skyblock/getSkyblockBingoByPlayer'),
getSkyblockGovernment: require('./skyblock/getSkyblockGovernment'),
getSkyblockMember: require('./skyblock/getSkyblockMember'),
getSkyblockNews: require('./skyblock/getSkyblockNews'),
Expand Down
4 changes: 2 additions & 2 deletions src/API/skyblock/getSkyblockBingo.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = async function () {
const BingoData = require('../../structures/Skyblock/Static/BingoData.js');
const BingoData = require('../../structures/SkyBlock/Static/BingoData');

const res = await this._makeRequest('/resources/skyblock/election');
const res = await this._makeRequest('/resources/skyblock/bingo');
if (res.raw) return res;

return new BingoData(res);
Expand Down
17 changes: 0 additions & 17 deletions tests/Client#getSkyblockGoverment.js

This file was deleted.

17 changes: 17 additions & 0 deletions tests/Client#getSkyblockGovernment.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* eslint-disable no-undef */
const { SkyblockGovernment } = require('../src/index.js');
const { client } = require('./Client.js');
const { expect } = require('chai');

describe('Client#getSkyblockGovernment', async () => {
let government;
it('expect not to throw', async () => {
government = await client.getSkyblockGovernment();
});
it('should be an objecct', () => {
expect(government).to.be.an('object');
});
it('required keys should exist', () => {
expect(government).instanceOf(SkyblockGovernment);
});
});

0 comments on commit 5ffff4c

Please sign in to comment.