Tools for BehaviorDrivenDevelopment include JSSpec for the JavaScript programming language: See http://jania.pe.kr/aw/moin.cgi/JSSpec