1
0
Fork 0

improve tests

This commit is contained in:
boyska 2022-01-30 00:26:58 +01:00
parent 0085d53bf1
commit 0d79eb615d
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@ const assert = chai.assert
const expect = chai.expect
const tests = ['empty', 'empty-no-streaminfo', 'empty-invalid-streaminfo']
for (var exampleName of tests) {
for (const exampleName of tests) {
let url = 'https://radiomanifest.degenerazione.xyz/v0.2/examples/' + exampleName + '/'
describe('examples/' + exampleName, () => {

2
ui.js
View file

@ -1,6 +1,6 @@
// const radiomanifest = require('radiomanifest.js')
async function fai () {
const radio = await radiomanifest.get('http://www.ondarossa.info/')
const radio = await radiomanifest.get('https://radiomanifest.degenerazione.xyz/v0.2/examples/full-ondarossa')
console.log('radio?', radio)
const s = radio.getStreaming()
console.log(s.sources)