annotate src/DML/VendorAssetsBundle/Resources/assets/jasmine/2.1.3/spec/SpecHelper.js @ 1:f38015048f48 tip

Added GPL
author Daniel Wolff
date Sat, 13 Feb 2016 20:43:38 +0100
parents 493bcb69166c
children
rev   line source
Daniel@0 1 beforeEach(function () {
Daniel@0 2 jasmine.addMatchers({
Daniel@0 3 toBePlaying: function () {
Daniel@0 4 return {
Daniel@0 5 compare: function (actual, expected) {
Daniel@0 6 var player = actual;
Daniel@0 7
Daniel@0 8 return {
Daniel@0 9 pass: player.currentlyPlayingSong === expected && player.isPlaying
Daniel@0 10 }
Daniel@0 11 }
Daniel@0 12 };
Daniel@0 13 }
Daniel@0 14 });
Daniel@0 15 });