summaryrefslogtreecommitdiffstats
path: root/catalog-fe/src/test/jasmine-standalone-2.0.0/spec/SpecHelper.js
blob: 578b3e862630e5cdef4a05752f37178d75434c98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
beforeEach(function () {
  jasmine.addMatchers({
    toBePlaying: function () {
      return {
        compare: function (actual, expected) {
          var player = actual;

          return {
            pass: player.currentlyPlayingSong === expected && player.isPlaying
          }
        }
      };
    }
  });
});