describe('slides', function () {

  var Dashboard = require('performanceplatform-client.js');
  var Q = require('q');
  var slides = require('../../src/js/slides.js');
  var container = document.createElement('div');

  beforeEach(function (done) {
    var deferred = Q.defer();

    Dashboard.prototype.getConfig = function () {
      return deferred.promise;
    };

    slides(container).then(function () {
      done();
    });
    deferred.resolve({
      'title': '"Dashboard title"'
    });
  });

  it('should retrieve dashboard config', function () {
    container.innerHTML.should.contain('Performance data for "Dashboard title"');
  });

});


@@ -277,16 +277,27 @@
 );%0A%0A    
+sinon.stub(
 Dashboar
@@ -307,17 +307,19 @@
 rototype
-.
+, '
 getConfi
@@ -323,38 +323,19 @@
 nfig
- = function () %7B%0A      
+').
 return
- 
+s(
 defe
@@ -346,23 +346,17 @@
 .promise
-;%0A    %7D
+)
 ;%0A%0A    s

Use sinon to stub method