Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
gabek committed Apr 7, 2020
1 parent 5daf300 commit 16f8312
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ var assert = chai.assert;
var getStreamStation = require("../lib/icystream.js").getStreamStation;
var fs = require('fs');
var main = require("../index.js");
var testStream = "http://ice1.somafm.com/groovesalad-128.mp3";
var testStream = "http://sc6.easywebcommunications.com:8007/1?cb=930346.mp3";

describe("handle stream data", function() {
describe("handle stream data", function () {

it("Should parse a generic stream", function(done) {
it("Should parse a generic stream", function (done) {

getStreamStation(testStream, function(error, station) {
getStreamStation(testStream, function (error, station) {
expect(station).to.exist;
expect(station).to.have.property('title');
expect(station).to.have.property('fetchsource');
Expand All @@ -32,10 +32,10 @@ describe("handle stream data", function() {
});
});

describe("Handle stream redirect", function() {
var redirectStream = "https://samcloud.spacial.com/api/listen?sid=73045&rid=155986&f=mp3,any&br=128000,any&m=sc";
it("Should redirect and return valid data", function(done) {
getStreamStation(redirectStream, function(error, station) {
describe("Handle stream redirect", function () {
var redirectStream = "http://listen.radionomy.com:80/WitchHouseRadiodotcom";
it("Should redirect and return valid data", function (done) {
getStreamStation(redirectStream, function (error, station) {
expect(station).to.exist;
expect(station).to.have.property('title');
done();
Expand Down

0 comments on commit 16f8312

Please sign in to comment.