const mocha = require('mocha');
const expect = require('chai').expect;
const server = require('../server');
const request = require('supertest')(server);



describe('Server Routes Testing', function() {
  it('should server index html on GET request to /', function(done) {
    request
      .get('/')
      .expect('Content-Type', /html/)
      .expect(200, done);
  });



  it('sending JSON object to client on GET request /songQueue', function(done) {
    // {artist,songName,thumbnailUrl, htmlString}
    request
      .get('/songQueue')
      .expect('Content-Type', /json/)
      .expect(function(res) {
          res.body.artist = 'Kanye';
          res.body.songName = 'Famous';
          res.body.thumbnailUrl = 'http://kanyethegod.com';
          res.body.htmlString = 'this is html string';
      })
      .expect(200, {
        artist: 'Kanye',
        songName: 'Famous',
        thumbnailUrl: 'http://kanyethegod.com',
        htmlString: 'this is html string',
      })
      .end(done);
  });


});

@@ -366,18 +366,16 @@
 %0A  %7D);%0A%0A
-%0A%0A
   it('se
@@ -758,26 +758,25 @@
 es.body.
-htmlString
+embedHtml
  = 'this
@@ -932,26 +932,25 @@
         
-htmlString
+embedHtml
 : 'this 

change htmlString to embedHtml