forked from boyska/radiomanifest.js
improve tests
This commit is contained in:
parent
0085d53bf1
commit
0d79eb615d
2 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ const assert = chai.assert
|
||||||
|
|
||||||
const expect = chai.expect
|
const expect = chai.expect
|
||||||
const tests = ['empty', 'empty-no-streaminfo', 'empty-invalid-streaminfo']
|
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 + '/'
|
let url = 'https://radiomanifest.degenerazione.xyz/v0.2/examples/' + exampleName + '/'
|
||||||
|
|
||||||
describe('examples/' + exampleName, () => {
|
describe('examples/' + exampleName, () => {
|
||||||
|
|
2
ui.js
2
ui.js
|
@ -1,6 +1,6 @@
|
||||||
// const radiomanifest = require('radiomanifest.js')
|
// const radiomanifest = require('radiomanifest.js')
|
||||||
async function fai () {
|
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)
|
console.log('radio?', radio)
|
||||||
const s = radio.getStreaming()
|
const s = radio.getStreaming()
|
||||||
console.log(s.sources)
|
console.log(s.sources)
|
||||||
|
|
Loading…
Reference in a new issue