annotate src/DML/VendorAssetsBundle/Resources/assets/jasmine/2.1.3/spec/SpecHelper.js @ 0:493bcb69166c

added public content
author Daniel Wolff
date Tue, 09 Feb 2016 20:54:02 +0100
parents
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 });