<s>
Jasmine	B-Language
is	O
an	O
open-source	B-Application
testing	O
framework	O
for	O
JavaScript	B-Language
.	O
</s>
<s>
It	O
aims	O
to	O
run	O
on	O
any	O
JavaScript-enabled	O
platform	O
,	O
to	O
not	O
intrude	O
on	O
the	O
application	O
nor	O
the	O
IDE	B-Application
,	O
and	O
to	O
have	O
easy-to-read	O
syntax	O
.	O
</s>
<s>
It	O
is	O
heavily	O
influenced	O
by	O
other	O
unit	O
testing	O
frameworks	O
,	O
such	O
as	O
ScrewUnit	O
,	O
JSSpec	O
,	O
JSpec	O
,	O
and	O
RSpec	B-Application
.	O
</s>
<s>
The	O
developers	O
at	O
Pivotal	O
Labs	O
for	O
Jasmine	B-Language
previously	O
developed	O
a	O
similar	O
unit	O
testing	O
framework	O
called	O
JsUnit	O
before	O
active	O
development	O
of	O
Jasmine	B-Language
.	O
</s>
<s>
Supports	O
testing	O
of	O
front-end	O
code	O
through	O
a	O
front-end	O
extension	O
of	O
Jasmine	B-Language
called	O
Jasmine-jQuery	O
.	O
</s>
<s>
Jasmine	B-Language
aims	O
to	O
be	O
easy	O
to	O
read	O
.	O
</s>
<s>
Usage	O
follows	O
syntax	O
similar	O
to	O
that	O
of	O
RSpec	B-Application
.	O
</s>
<s>
Jasmine	B-Language
provides	O
a	O
rich	O
set	O
of	O
built-in	O
matchers	O
.	O
</s>
<s>
Jasmine	B-Language
matchers	O
return	O
a	O
Boolean	O
value	O
:	O
true	O
if	O
the	O
expectation	O
is	O
matched	O
(	O
a	O
way	O
to	O
indicate	O
that	O
the	O
test	O
has	O
passed	O
)	O
or	O
false	O
if	O
the	O
expectation	O
does	O
not	O
match	O
.	O
</s>
<s>
As	O
the	O
name	O
suggests	O
toBeNull	O
checks	O
if	O
something	O
is	O
null	O
and	O
toBeNaN	O
checks	O
if	O
something	O
is	O
not	O
a	O
number	O
(	O
NaN	O
)	O
.	O
</s>
<s>
Jasmine	B-Language
has	O
a	O
number	O
of	O
other	O
features	O
,	O
such	O
as	O
custom	O
matchers	O
,	O
spies	O
,	O
and	O
support	O
for	O
asynchronous	O
specifications	O
.	O
</s>
<s>
Jasmine	B-Language
comes	O
with	O
an	O
inbuilt	O
test	O
runner	O
.	O
</s>
<s>
Jasmine	B-Language
tests	O
can	O
run	O
browser	O
tests	O
by	O
including	O
a	O
simple	O
SpecRunner.html	O
file	O
or	O
by	O
using	O
it	O
as	O
a	O
command	O
line	O
test	O
runner	O
supported	O
for	O
various	O
languages	O
like	O
,	O
or	O
(	O
old	O
way	O
)	O
by	O
using	O
Karma	O
,	O
a	O
simple	O
JavaScript	B-Language
test	O
runner	O
tool	O
.	O
</s>
<s>
Mocha	B-Language
is	O
another	O
popular	O
Javascript	B-Language
testing	O
framework	O
.	O
</s>
<s>
The	O
comparison	O
between	O
Jasmine	B-Language
and	O
Mocha	B-Language
is	O
given	O
in	O
the	O
table	O
below	O
.	O
</s>
<s>
JasmineMochaJasmine	O
comes	O
with	O
test	O
doubles	O
by	O
using	O
spies.Mocha	O
does	O
not	O
come	O
with	O
a	O
test	O
double	O
library	O
,	O
and	O
generally	O
uses	O
an	O
external	O
library	O
like	O
Sinon.Jasmine	O
has	O
a	O
command	O
line	O
utility	O
to	O
run	O
tests.Mocha	O
has	O
a	O
command	O
line	O
utility	O
to	O
run	O
tests.Jasmine	O
has	O
assertions	O
built	O
into	O
it.Mocha	O
does	O
not	O
have	O
an	O
assertions	O
library	O
and	O
uses	O
Chai	O
for	O
assertions	O
.	O
</s>
<s>
The	O
aim	O
of	O
Jasmine	B-Language
is	O
to	O
be	O
browser	O
,	O
framework	O
,	O
platform	O
and	O
language	O
independent	O
.	O
</s>
<s>
Besides	O
behavior-driven	O
development	O
,	O
Jasmine	B-Language
also	O
supports	O
test	O
driven	O
development	O
.	O
</s>
