This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
/** Drive this via mocha. Simple 101 explorations of the hooks in mocha. | |
*/ | |
var expect = require('chai').expect; | |
/** So, just how complicated do the hooks get? | |
* https://medium.com/@kanyang/hooks-in-mocha-87cb43baa91c | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** This file explores unexpected behavior by mocha with regards to strict mode. | |
* This was only tested on [email protected] on OSX 10.8.5 | |
* | |
* For reference here is the relevant part of the ECMAScript Spec 5.1 | |
* 14.1 Directive Prologues and the Use Strict Directive | |
* http://www.ecma-international.org/ecma-262/5.1/#sec-14.1 | |
* | |
* For clarity to distinguish the 2 instances of the Use Strict Directive in this file both variants are used, each once: | |
* 'use strict'; | |
* "use strict"; |