FazBrowse Wikipedia Viewer
|
Main Page
|
Search Wikipedia:
|
Viewing:
https://en.wikipedia.org/wiki/Mocha_(JavaScript_framework)
Mocha (JavaScript framework)
Stable release
12.0.3
$
npminstall-gmocha
$
mkdir
test
$
$EDITOR
test/test.js
# or open with your favorite editor
describe
(
'Foo'
,
function
(){
describe
(
'#bar()'
,
function
()
{
it
(
'should work without error'
,
function
(
done
)
{
var
foo
=
new
Foo
(
128
);
foo
.
bar
(
done
);
})
})
})
See also
edit
Free and open-source software portal
Jasmine
List of unit testing frameworks
npm
QUnit
JavaScript framework
JavaScript library
References
edit
Official website
View original on Wikipedia
|
Back
|
FazBrowse Home