Guest User

Softunify

a guest
Nov 21st, 2019
221
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. describe("TODO …", function() {
  2.     let sofunify;
  3.     beforeEach ( () =>{
  4.         sofunify = new SoftUniFy();
  5.     });
  6.  
  7.     describe('downloadSongWorks', function () {
  8.         it('correct', function() {
  9.             expect(sofunify.allSongs).eql({});
  10.             expect(sofunify.songsList).to.equal('Your song list is empty');
  11.             expect(sofunify.playSong()).to.equal(`You have not downloaded a undefined song yet. Use SoftUniFy's function downloadSong() to change that!`);
  12.            expect(sofunify.rateArtist()).to.equal(`The ${arguments[0]} is not on your artist list.`);
  13.        });
  14.  
  15.        describe('allSongsWorks', function () {
  16.            it('correct', function() {
  17.                sofunify.downloadSong('Eminem', 'Venom', 'Knock, Knock let the devil in...');
  18.                expect(sofunify.songsList).to.equal('Venom - Knock, Knock let the devil in...');
  19.                expect(sofunify.playSong('Eminem')).to.be.eql(`You have not downloaded a Eminem song yet. Use SoftUniFy's function downloadSong() to change that!`);
  20.                 sofunify.downloadSong('Eminem', 'Phenomenal', 'IM PHENOMENAL...');
  21.                 sofunify.downloadSong('Dub Fx', 'Light Me On Fire', 'You can call me a liar.. ');
  22.                 expect(sofunify.allSongs).to.equal('{ Object (Eminem, Dub Fx) }');
  23.  
  24.             });
  25.         });
  26.  
  27.         });
  28. });
RAW Paste Data