UNPKG
happner-serial-mocha
Version:
latest (1.5.2)
1.5.2
1.5.1
1.5.0
1.4.0
1.3.0
1.2.5
1.2.3
1.2.2
1.2.1
1.2.0
1.0.0
Run mocha tests serially
github.com/happner/happner-serial-mocha
happner/happner-serial-mocha
happner-serial-mocha
/
spec
/
helpers
/
jasmine_examples
/
SpecHelper.js
16 lines
(14 loc)
•
319 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
beforeEach
(
function
(
) { jasmine.
addMatchers
({
toBePlaying
:
function
(
) {
return
{
compare
:
function
(
actual, expected
) {
var
player = actual;
return
{
pass
: player.
currentlyPlayingSong
=== expected && player.
isPlaying
} } }; } }); });