aboutsummaryrefslogtreecommitdiffstats
path: root/docs/spec/specs.js
diff options
context:
space:
mode:
authorPeter Bacon Darwin2014-02-12 22:47:42 +0000
committerPeter Bacon Darwin2014-02-16 19:03:41 +0000
commit389d4879da4aa620ee95d789b19ff9be44eb730a (patch)
tree93352ddc8738a975904a1774d51b93d585ca1075 /docs/spec/specs.js
parenta564160511bf1bbed5a4fe5d2981fae1bb664eca (diff)
downloadangular.js-389d4879da4aa620ee95d789b19ff9be44eb730a.tar.bz2
chore(doc-gen): new docs
chore(doc-gen): implement dgeni
Diffstat (limited to 'docs/spec/specs.js')
-rw-r--r--docs/spec/specs.js36
1 files changed, 0 insertions, 36 deletions
diff --git a/docs/spec/specs.js b/docs/spec/specs.js
deleted file mode 100644
index 1b267ab3..00000000
--- a/docs/spec/specs.js
+++ /dev/null
@@ -1,36 +0,0 @@
-if (global.jasmine) return;
-
-var jasmine = require('../../lib/jasmine-1.0.1');
-
-for(var key in jasmine) {
- global[key] = jasmine[key];
-}
-
-//Patch Jasmine for proper stack traces
-jasmine.Spec.prototype.fail = function(e) {
- var expectationResult = new jasmine.ExpectationResult({
- passed: false,
- message: e ? jasmine.util.formatException(e) : 'Exception'
- });
- // PATCH
- if (e) {
- expectationResult.trace = e;
- }
- this.results_.addResult(expectationResult);
-};
-
-
-
-var isVerbose = false;
-var showColors = true;
-process.argv.forEach(function(arg){
- switch(arg) {
- case '--color': showColors = true; break;
- case '--noColor': showColors = false; break;
- case '--verbose': isVerbose = true; break;
- }
-});
-
-jasmine.executeSpecsInFolder(__dirname, function(runner, log){
- process.exit(runner.results().failedCount);
-}, isVerbose, showColors);