const radiomanifest = require('../radiomanifest.js') const chai = require('chai') chai.use(require('chai-as-promised')) const assert = chai.assert const exampleName = 'full-ondarossa' const expect = chai.expect const url = 'https://radiomanifest.degenerazione.xyz/v0.2/examples/' + exampleName + '/' describe('examples/' + exampleName, () => { describe('shows', () => { it('shoud find many shows', async () => { const rm = await radiomanifest.get(url) assert.isAbove(rm.getShows().length, 1) }) it('one of which is called "Entropia Massima"', async () => { const rm = await radiomanifest.get(url) const show = rm.getShowByName("Entropia Massima") assert.equal(show.getName(), "Entropia Massima") assert.equal(show.getWebsite(), "http://www.ondarossa.info/trx/entropia-massima") assert.equal(show.getSchedule(), null) }) }) })