Selaa lähdekoodia

improve tests

boyska 2 vuotta sitten
vanhempi
commit
0d79eb615d
2 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 1 1
      test/example-empty.test.js
  2. 1 1
      ui.js

+ 1 - 1
test/example-empty.test.js

@@ -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, () => {

+ 1 - 1
ui.js

@@ -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)