Mocha var code = 'var app;'; ! describe('angular module', function() { it('Make sure to create an Angular module using the `angular.module` method.', function() { }); }); Shown only when incorrect in this way
Don’t Really eval eval would contaminate all tests eval(code); var code = 'var app;'; it('Make sure to create an Angular module using the `angular.module` method.', function() { }); }); describe('angular module', function() {
Dynamic Messages You created a module named banana, but we’re looking for one named gemStore. var code = 'var app = angular.module(\'banana\', [])'; it('Not used message', function() { }); var moduleName = spy.getCall(0).args[0]; assert(moduleName == "gemStore", "You created a module named `" + moduleName + "` but we're looking for a module named `gemStore`.”);