Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Mocha ja QUnit
Search
TomTer
October 05, 2014
Programming
0
55
Mocha ja QUnit
Lalalala. Slides for our course: modern-web-tools-with-node-js-book
TomTer
October 05, 2014
Tweet
Share
Other Decks in Programming
See All in Programming
Introduce Hono CLI
yusukebe
6
3.3k
スキーマ駆動で、Zod OpenAPI Honoによる、API開発するために、Hono Takibiというライブラリを作っている
nakita628
0
330
CSC305 Lecture 12
javiergs
PRO
0
250
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
680
MCPサーバー「モディフィウス」で変更容易性の向上をスケールする / modifius
minodriven
3
190
三者三様 宣言的UI
kkagurazaka
0
330
TFLintカスタムプラグインで始める Terraformコード品質管理
bells17
2
520
EMこそClaude Codeでコード調査しよう
shibayu36
0
550
Towards Transactional Buffering of CDC Events @ Flink Forward 2025 Barcelona Spain
hpgrahsl
0
120
AI時代に必須!状況言語化スキル / ai-context-verbalization
minodriven
2
290
Blazing Fast UI Development with Compose Hot Reload (droidcon London 2025)
zsmb
0
440
3年ぶりにコードを書いた元CTOが Claude Codeと30分でMVPを作った話
maikokojima
0
730
Featured
See All Featured
[RailsConf 2023] Rails as a piece of cake
palkan
57
6k
Building Applications with DynamoDB
mza
96
6.7k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
31
2.7k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Code Review Best Practice
trishagee
72
19k
KATA
mclloyd
PRO
32
15k
The Language of Interfaces
destraynor
162
25k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
10
900
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.7k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
54k
Being A Developer After 40
akosma
91
590k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
1.7k
Transcript
Mocha ja Qunit Toomas Tero
Sisältö Mocha Qunit Bye-bye
Mocha oJS testing framework running on NodeJS and a browser.
oAnalogues: JUnit for Java, PHPUnit, PyUnit etc… oCan be tested both sync and async code
Test program n.1 A very “complex” synchronous class we want
to import and test using Mocha
Actual testing program n.1 Class is imported, new instanced made
and lets eat test that thing.
Results n.1 Everything went as we wanted
Test program n.2 Oh, we forgot to fry it first.
Lets do it!
Test program n.2 Lalalalallalala. No one reads this text I
said….
Results n.2 Das ist fantastisch!
Offtopic - My favorite part in NodeJS… (of course without
using ”async” module)
QUnit o JS unit testing framework. o Only in browsers.
o From JQuery creators.
QUnit result Everything is ok.