You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
722 B
22 lines
722 B
require('dotenv').config();
|
|
const assert = require('assert'),
|
|
TMIO = require('../'),
|
|
tmioClient = new TMIO.Client({dev: true});
|
|
|
|
describe("Maps", function(){
|
|
this.timeout(15*1000);
|
|
|
|
it("Map Info", async function(){
|
|
const map = await tmioClient.maps.get('1jEeZQTADlb9wIY2YzCjZ5Lpmxh');
|
|
const author = await map.author();
|
|
const exchange = await map.exchange();
|
|
|
|
assert.equal(author.login, "Jtmn3kBnSSadky_mLNhp_A");
|
|
assert.equal(map.medalTimes.author, 11216);
|
|
assert.equal(map.medalTimes.gold, 12000);
|
|
assert.equal(map.medalTimes.silver, 14000);
|
|
assert.equal(map.medalTimes.bronze, 17000);
|
|
|
|
assert.equal(exchange.id, 41427);
|
|
});
|
|
});
|