Blame view

framework/thirdparty/jasmine/example/spec/SpecHelper.js 223 Bytes
0084d336   Administrator   Importers CRUD
1
2
3
4
5
6
7
8
9
  beforeEach(function() {
    this.addMatchers({
      toBePlaying: function(expectedSong) {
        var player = this.actual;
        return player.currentlyPlayingSong === expectedSong
            && player.isPlaying;
      }
    })
  });