Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
gfnork node.js workshop Lesson #6 Unit testing
Search
gfnork
June 20, 2014
Programming
480
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
gfnork node.js workshop Lesson #6 Unit testing
Assert, Mocha
gfnork
June 20, 2014
Transcript
24 slides
None
2
3
4
5
6 import Compaing
7 Diffrent syntax but does the same Thing Expends the
Prototype of Object
8
9
10
11 Arange Act Assert
12
13
14
15 returns -1 if not contained no require needed
16
17 Suite in TDD
18 are grouped within 'something'
19 Executed once before the tests start Executed once before
each test
20 tells the test that its async delays the function
to make it async sets the maximum time a test can run before it is caneled
21 Throwing Exception
22
23
24
More Decks by gfnork
See All by gfnork
Basic Mobile Application Design
freundschaft
0
540
gfnork node.js workshop Lesson #1 JavaScript Basics
freundschaft
0
1k
gfnork node.js workshop Lesson #2 JavaScript Async
freundschaft
0
1k
gfnork node.js workshop Lesson #3 node.js basics
freundschaft
0
480
gfnork node.js workshop Lesson #4 middleware for node
freundschaft
0
530
gfnork node.js workshop Lesson #5 node.js databases
freundschaft
0
490
Other Decks in Programming
See All in Programming
baseline으로 마이그레이션, 리팩토링 안전하게 맡기기
fornewid
1
1.1k
TS 7.0 で baseUrl が使えなくなった今、パスエイリアスをどうするか
bicstone
2
830
Kotlin Fest 2026: Kotlin コンパイラに Contribute してみよう! - Kotlin/Wasm で深い再帰を書けるようにした話
ternbusty
1
420
Engineering Biometric UX Across Android Versions | DroidKnights 2026
ryunen344
1
220
AIコーディングをセッションで終わらせない: PHPライブラリ開発におけるコンテキスト承継設計
ickx
0
110
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
420
Beyond Chatbots: Agentic UI with Open Standards @W-JAX 2026, München
manfredsteyer
PRO
0
130
Skills Are the New npm [AAIF Bengaluru, Nov 2026]
shivamsaraswat
0
130
コード生成時代のAPI定義を支えるRequest Spec移行
pvcresin
0
300
joyful-journey-spring-boot.pdf
hollycummins
0
110
高速開発を止めずに 性能を上げる Flyleのシステム刷新と改善の歴史
azihsoyn
0
110
AI駆動開発4年目の現在地(『あなたはFDEになるべきか?』イベント資料)
kumaiu
0
700
Featured
See All Featured
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
690
From π to Pie charts
rasagy
1
460
Rebuilding a faster, lazier Slack
samanthasiow
85
9.8k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
690
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
560
What's in a price? How to price your products and services
michaelherold
247
13k
Ten Tips & Tricks for a 🌱 transition
stuffmc
1
290
Scaling GitHub
holman
464
140k
AI: The stuff that nobody shows you
jnunemaker
PRO
12
1.3k
Product Roadmaps are Hard
iamctodd
55
13k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.7k