jasmine-core 2.99.2 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jasmine-core/boot.js +7 -6
  3. data/lib/jasmine-core/boot/boot.js +7 -6
  4. data/lib/jasmine-core/boot/node_boot.js +0 -3
  5. data/lib/jasmine-core/jasmine-html.js +228 -137
  6. data/lib/jasmine-core/jasmine.css +11 -5
  7. data/lib/jasmine-core/jasmine.js +1046 -608
  8. data/lib/jasmine-core/node_boot.js +0 -3
  9. data/lib/jasmine-core/spec/core/CallTrackerSpec.js +130 -0
  10. data/lib/jasmine-core/spec/core/ClearStackSpec.js +137 -0
  11. data/lib/jasmine-core/spec/core/ClockSpec.js +710 -0
  12. data/lib/jasmine-core/spec/core/DelayedFunctionSchedulerSpec.js +286 -0
  13. data/lib/jasmine-core/spec/core/EnvSpec.js +200 -0
  14. data/lib/jasmine-core/spec/core/ExceptionFormatterSpec.js +120 -0
  15. data/lib/jasmine-core/spec/core/ExceptionsSpec.js +46 -0
  16. data/lib/jasmine-core/spec/core/ExpectationResultSpec.js +61 -0
  17. data/lib/jasmine-core/spec/core/ExpectationSpec.js +434 -0
  18. data/lib/jasmine-core/spec/core/GlobalErrorsSpec.js +110 -0
  19. data/lib/jasmine-core/spec/core/JsApiReporterSpec.js +259 -0
  20. data/lib/jasmine-core/spec/core/MockDateSpec.js +200 -0
  21. data/lib/jasmine-core/spec/core/PrettyPrintSpec.js +332 -0
  22. data/lib/jasmine-core/spec/core/QueueRunnerSpec.js +670 -0
  23. data/lib/jasmine-core/spec/core/ReportDispatcherSpec.js +140 -0
  24. data/lib/jasmine-core/spec/core/SpecSpec.js +407 -0
  25. data/lib/jasmine-core/spec/core/SpyRegistrySpec.js +364 -0
  26. data/lib/jasmine-core/spec/core/SpySpec.js +177 -0
  27. data/lib/jasmine-core/spec/core/SpyStrategySpec.js +202 -0
  28. data/lib/jasmine-core/spec/core/StackTraceSpec.js +166 -0
  29. data/lib/jasmine-core/spec/core/SuiteSpec.js +123 -0
  30. data/lib/jasmine-core/spec/core/TimerSpec.js +31 -0
  31. data/lib/jasmine-core/spec/core/TreeProcessorSpec.js +794 -0
  32. data/lib/jasmine-core/spec/core/UserContextSpec.js +54 -0
  33. data/lib/jasmine-core/spec/core/UtilSpec.js +105 -0
  34. data/lib/jasmine-core/spec/core/asymmetric_equality/AnySpec.js +91 -0
  35. data/lib/jasmine-core/spec/core/asymmetric_equality/AnythingSpec.js +76 -0
  36. data/lib/jasmine-core/spec/core/asymmetric_equality/ArrayContainingSpec.js +52 -0
  37. data/lib/jasmine-core/spec/core/asymmetric_equality/ArrayWithExactContentsSpec.js +47 -0
  38. data/lib/jasmine-core/spec/core/asymmetric_equality/ObjectContainingSpec.js +99 -0
  39. data/lib/jasmine-core/spec/core/asymmetric_equality/StringMatchingSpec.js +27 -0
  40. data/lib/jasmine-core/spec/core/formatErrorMsgSpec.js +13 -0
  41. data/lib/jasmine-core/spec/core/integration/CustomMatchersSpec.js +200 -0
  42. data/lib/jasmine-core/spec/core/integration/CustomSpyStrategiesSpec.js +138 -0
  43. data/lib/jasmine-core/spec/core/integration/EnvSpec.js +2344 -0
  44. data/lib/jasmine-core/spec/core/integration/SpecRunningSpec.js +976 -0
  45. data/lib/jasmine-core/spec/core/matchers/DiffBuilderSpec.js +47 -0
  46. data/lib/jasmine-core/spec/core/matchers/NullDiffBuilderSpec.js +13 -0
  47. data/lib/jasmine-core/spec/core/matchers/ObjectPathSpec.js +43 -0
  48. data/lib/jasmine-core/spec/core/matchers/matchersUtilSpec.js +645 -0
  49. data/lib/jasmine-core/spec/core/matchers/nothingSpec.js +8 -0
  50. data/lib/jasmine-core/spec/core/matchers/toBeCloseToSpec.js +93 -0
  51. data/lib/jasmine-core/spec/core/matchers/toBeDefinedSpec.js +18 -0
  52. data/lib/jasmine-core/spec/core/matchers/toBeFalsySpec.js +38 -0
  53. data/lib/jasmine-core/spec/core/matchers/toBeGreaterThanOrEqualSpec.js +29 -0
  54. data/lib/jasmine-core/spec/core/matchers/toBeGreaterThanSpec.js +20 -0
  55. data/lib/jasmine-core/spec/core/matchers/toBeLessThanOrEqualSpec.js +29 -0
  56. data/lib/jasmine-core/spec/core/matchers/toBeLessThanSpec.js +20 -0
  57. data/lib/jasmine-core/spec/core/matchers/toBeNaNSpec.js +37 -0
  58. data/lib/jasmine-core/spec/core/matchers/toBeNegativeInfinitySpec.js +31 -0
  59. data/lib/jasmine-core/spec/core/matchers/toBeNullSpec.js +17 -0
  60. data/lib/jasmine-core/spec/core/matchers/toBePositiveInfinitySpec.js +31 -0
  61. data/lib/jasmine-core/spec/core/matchers/toBeSpec.js +17 -0
  62. data/lib/jasmine-core/spec/core/matchers/toBeTruthySpec.js +38 -0
  63. data/lib/jasmine-core/spec/core/matchers/toBeUndefinedSpec.js +18 -0
  64. data/lib/jasmine-core/spec/core/matchers/toContainSpec.js +26 -0
  65. data/lib/jasmine-core/spec/core/matchers/toEqualSpec.js +785 -0
  66. data/lib/jasmine-core/spec/core/matchers/toHaveBeenCalledBeforeSpec.js +99 -0
  67. data/lib/jasmine-core/spec/core/matchers/toHaveBeenCalledSpec.js +47 -0
  68. data/lib/jasmine-core/spec/core/matchers/toHaveBeenCalledTimesSpec.js +86 -0
  69. data/lib/jasmine-core/spec/core/matchers/toHaveBeenCalledWithSpec.js +67 -0
  70. data/lib/jasmine-core/spec/core/matchers/toMatchSpec.js +43 -0
  71. data/lib/jasmine-core/spec/core/matchers/toThrowErrorSpec.js +315 -0
  72. data/lib/jasmine-core/spec/core/matchers/toThrowMatchingSpec.js +73 -0
  73. data/lib/jasmine-core/spec/core/matchers/toThrowSpec.js +100 -0
  74. data/lib/jasmine-core/spec/helpers/BrowserFlags.js +15 -0
  75. data/lib/jasmine-core/spec/helpers/asyncAwait.js +27 -0
  76. data/lib/jasmine-core/spec/helpers/checkForMap.js +37 -0
  77. data/lib/jasmine-core/spec/helpers/checkForSet.js +41 -0
  78. data/lib/jasmine-core/spec/helpers/checkForSymbol.js +28 -0
  79. data/lib/jasmine-core/spec/helpers/checkForTypedArrays.js +20 -0
  80. data/lib/jasmine-core/spec/helpers/defineJasmineUnderTest.js +6 -0
  81. data/lib/jasmine-core/spec/helpers/integrationMatchers.js +43 -0
  82. data/lib/jasmine-core/spec/helpers/nodeDefineJasmineUnderTest.js +30 -0
  83. data/lib/jasmine-core/spec/html/HtmlReporterSpec.js +1261 -0
  84. data/lib/jasmine-core/spec/html/HtmlSpecFilterSpec.js +18 -0
  85. data/lib/jasmine-core/spec/html/MatchersHtmlSpec.js +37 -0
  86. data/lib/jasmine-core/spec/html/PrettyPrintHtmlSpec.js +27 -0
  87. data/lib/jasmine-core/spec/html/QueryStringSpec.js +72 -0
  88. data/lib/jasmine-core/spec/html/ResultsNodeSpec.js +62 -0
  89. data/lib/jasmine-core/spec/html/SpyRegistryHtmlSpec.js +39 -0
  90. data/lib/jasmine-core/spec/html/matchers/toHaveClassSpec.js +48 -0
  91. data/lib/jasmine-core/spec/npmPackage/npmPackageSpec.js +101 -0
  92. data/lib/jasmine-core/spec/performance/large_object_test.js +36 -0
  93. data/lib/jasmine-core/spec/performance/performance_test.js +10 -0
  94. data/lib/jasmine-core/version.rb +1 -1
  95. metadata +88 -4
  96. data/lib/console/console.js +0 -190
@@ -0,0 +1,10 @@
1
+ describe("performance", function() {
2
+ for (var i = 0; i < 10000; i++) {
3
+ it("should pass", function() {
4
+ expect(true).toBe(true);
5
+ });
6
+ it("should fail", function() {
7
+ expect(true).toBe(false);
8
+ });
9
+ }
10
+ });
@@ -4,6 +4,6 @@
4
4
  #
5
5
  module Jasmine
6
6
  module Core
7
- VERSION = "2.99.2"
7
+ VERSION = "3.0.0"
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jasmine-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.99.2
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregg Van Hove
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-09 00:00:00.000000000 Z
11
+ date: 2018-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -73,7 +73,6 @@ executables: []
73
73
  extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
- - "./lib/console/console.js"
77
76
  - "./lib/jasmine-core.js"
78
77
  - "./lib/jasmine-core.rb"
79
78
  - "./lib/jasmine-core/__init__.py"
@@ -94,6 +93,91 @@ files:
94
93
  - "./lib/jasmine-core/jasmine.js"
95
94
  - "./lib/jasmine-core/json2.js"
96
95
  - "./lib/jasmine-core/node_boot.js"
96
+ - "./lib/jasmine-core/spec/core/CallTrackerSpec.js"
97
+ - "./lib/jasmine-core/spec/core/ClearStackSpec.js"
98
+ - "./lib/jasmine-core/spec/core/ClockSpec.js"
99
+ - "./lib/jasmine-core/spec/core/DelayedFunctionSchedulerSpec.js"
100
+ - "./lib/jasmine-core/spec/core/EnvSpec.js"
101
+ - "./lib/jasmine-core/spec/core/ExceptionFormatterSpec.js"
102
+ - "./lib/jasmine-core/spec/core/ExceptionsSpec.js"
103
+ - "./lib/jasmine-core/spec/core/ExpectationResultSpec.js"
104
+ - "./lib/jasmine-core/spec/core/ExpectationSpec.js"
105
+ - "./lib/jasmine-core/spec/core/GlobalErrorsSpec.js"
106
+ - "./lib/jasmine-core/spec/core/JsApiReporterSpec.js"
107
+ - "./lib/jasmine-core/spec/core/MockDateSpec.js"
108
+ - "./lib/jasmine-core/spec/core/PrettyPrintSpec.js"
109
+ - "./lib/jasmine-core/spec/core/QueueRunnerSpec.js"
110
+ - "./lib/jasmine-core/spec/core/ReportDispatcherSpec.js"
111
+ - "./lib/jasmine-core/spec/core/SpecSpec.js"
112
+ - "./lib/jasmine-core/spec/core/SpyRegistrySpec.js"
113
+ - "./lib/jasmine-core/spec/core/SpySpec.js"
114
+ - "./lib/jasmine-core/spec/core/SpyStrategySpec.js"
115
+ - "./lib/jasmine-core/spec/core/StackTraceSpec.js"
116
+ - "./lib/jasmine-core/spec/core/SuiteSpec.js"
117
+ - "./lib/jasmine-core/spec/core/TimerSpec.js"
118
+ - "./lib/jasmine-core/spec/core/TreeProcessorSpec.js"
119
+ - "./lib/jasmine-core/spec/core/UserContextSpec.js"
120
+ - "./lib/jasmine-core/spec/core/UtilSpec.js"
121
+ - "./lib/jasmine-core/spec/core/asymmetric_equality/AnySpec.js"
122
+ - "./lib/jasmine-core/spec/core/asymmetric_equality/AnythingSpec.js"
123
+ - "./lib/jasmine-core/spec/core/asymmetric_equality/ArrayContainingSpec.js"
124
+ - "./lib/jasmine-core/spec/core/asymmetric_equality/ArrayWithExactContentsSpec.js"
125
+ - "./lib/jasmine-core/spec/core/asymmetric_equality/ObjectContainingSpec.js"
126
+ - "./lib/jasmine-core/spec/core/asymmetric_equality/StringMatchingSpec.js"
127
+ - "./lib/jasmine-core/spec/core/formatErrorMsgSpec.js"
128
+ - "./lib/jasmine-core/spec/core/integration/CustomMatchersSpec.js"
129
+ - "./lib/jasmine-core/spec/core/integration/CustomSpyStrategiesSpec.js"
130
+ - "./lib/jasmine-core/spec/core/integration/EnvSpec.js"
131
+ - "./lib/jasmine-core/spec/core/integration/SpecRunningSpec.js"
132
+ - "./lib/jasmine-core/spec/core/matchers/DiffBuilderSpec.js"
133
+ - "./lib/jasmine-core/spec/core/matchers/NullDiffBuilderSpec.js"
134
+ - "./lib/jasmine-core/spec/core/matchers/ObjectPathSpec.js"
135
+ - "./lib/jasmine-core/spec/core/matchers/matchersUtilSpec.js"
136
+ - "./lib/jasmine-core/spec/core/matchers/nothingSpec.js"
137
+ - "./lib/jasmine-core/spec/core/matchers/toBeCloseToSpec.js"
138
+ - "./lib/jasmine-core/spec/core/matchers/toBeDefinedSpec.js"
139
+ - "./lib/jasmine-core/spec/core/matchers/toBeFalsySpec.js"
140
+ - "./lib/jasmine-core/spec/core/matchers/toBeGreaterThanOrEqualSpec.js"
141
+ - "./lib/jasmine-core/spec/core/matchers/toBeGreaterThanSpec.js"
142
+ - "./lib/jasmine-core/spec/core/matchers/toBeLessThanOrEqualSpec.js"
143
+ - "./lib/jasmine-core/spec/core/matchers/toBeLessThanSpec.js"
144
+ - "./lib/jasmine-core/spec/core/matchers/toBeNaNSpec.js"
145
+ - "./lib/jasmine-core/spec/core/matchers/toBeNegativeInfinitySpec.js"
146
+ - "./lib/jasmine-core/spec/core/matchers/toBeNullSpec.js"
147
+ - "./lib/jasmine-core/spec/core/matchers/toBePositiveInfinitySpec.js"
148
+ - "./lib/jasmine-core/spec/core/matchers/toBeSpec.js"
149
+ - "./lib/jasmine-core/spec/core/matchers/toBeTruthySpec.js"
150
+ - "./lib/jasmine-core/spec/core/matchers/toBeUndefinedSpec.js"
151
+ - "./lib/jasmine-core/spec/core/matchers/toContainSpec.js"
152
+ - "./lib/jasmine-core/spec/core/matchers/toEqualSpec.js"
153
+ - "./lib/jasmine-core/spec/core/matchers/toHaveBeenCalledBeforeSpec.js"
154
+ - "./lib/jasmine-core/spec/core/matchers/toHaveBeenCalledSpec.js"
155
+ - "./lib/jasmine-core/spec/core/matchers/toHaveBeenCalledTimesSpec.js"
156
+ - "./lib/jasmine-core/spec/core/matchers/toHaveBeenCalledWithSpec.js"
157
+ - "./lib/jasmine-core/spec/core/matchers/toMatchSpec.js"
158
+ - "./lib/jasmine-core/spec/core/matchers/toThrowErrorSpec.js"
159
+ - "./lib/jasmine-core/spec/core/matchers/toThrowMatchingSpec.js"
160
+ - "./lib/jasmine-core/spec/core/matchers/toThrowSpec.js"
161
+ - "./lib/jasmine-core/spec/helpers/BrowserFlags.js"
162
+ - "./lib/jasmine-core/spec/helpers/asyncAwait.js"
163
+ - "./lib/jasmine-core/spec/helpers/checkForMap.js"
164
+ - "./lib/jasmine-core/spec/helpers/checkForSet.js"
165
+ - "./lib/jasmine-core/spec/helpers/checkForSymbol.js"
166
+ - "./lib/jasmine-core/spec/helpers/checkForTypedArrays.js"
167
+ - "./lib/jasmine-core/spec/helpers/defineJasmineUnderTest.js"
168
+ - "./lib/jasmine-core/spec/helpers/integrationMatchers.js"
169
+ - "./lib/jasmine-core/spec/helpers/nodeDefineJasmineUnderTest.js"
170
+ - "./lib/jasmine-core/spec/html/HtmlReporterSpec.js"
171
+ - "./lib/jasmine-core/spec/html/HtmlSpecFilterSpec.js"
172
+ - "./lib/jasmine-core/spec/html/MatchersHtmlSpec.js"
173
+ - "./lib/jasmine-core/spec/html/PrettyPrintHtmlSpec.js"
174
+ - "./lib/jasmine-core/spec/html/QueryStringSpec.js"
175
+ - "./lib/jasmine-core/spec/html/ResultsNodeSpec.js"
176
+ - "./lib/jasmine-core/spec/html/SpyRegistryHtmlSpec.js"
177
+ - "./lib/jasmine-core/spec/html/matchers/toHaveClassSpec.js"
178
+ - "./lib/jasmine-core/spec/npmPackage/npmPackageSpec.js"
179
+ - "./lib/jasmine-core/spec/performance/large_object_test.js"
180
+ - "./lib/jasmine-core/spec/performance/performance_test.js"
97
181
  - "./lib/jasmine-core/version.rb"
98
182
  homepage: http://jasmine.github.io
99
183
  licenses:
@@ -115,7 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
199
  version: '0'
116
200
  requirements: []
117
201
  rubyforge_project: jasmine-core
118
- rubygems_version: 2.6.11
202
+ rubygems_version: 2.4.5.1
119
203
  signing_key:
120
204
  specification_version: 4
121
205
  summary: JavaScript BDD framework
@@ -1,190 +0,0 @@
1
- /*
2
- Copyright (c) 2008-2018 Pivotal Labs
3
-
4
- Permission is hereby granted, free of charge, to any person obtaining
5
- a copy of this software and associated documentation files (the
6
- "Software"), to deal in the Software without restriction, including
7
- without limitation the rights to use, copy, modify, merge, publish,
8
- distribute, sublicense, and/or sell copies of the Software, and to
9
- permit persons to whom the Software is furnished to do so, subject to
10
- the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be
13
- included in all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
- */
23
- function getJasmineRequireObj() {
24
- if (typeof module !== 'undefined' && module.exports) {
25
- return exports;
26
- } else {
27
- window.jasmineRequire = window.jasmineRequire || {};
28
- return window.jasmineRequire;
29
- }
30
- }
31
-
32
- getJasmineRequireObj().console = function(jRequire, j$) {
33
- j$.ConsoleReporter = jRequire.ConsoleReporter();
34
- };
35
-
36
- getJasmineRequireObj().ConsoleReporter = function() {
37
-
38
- var noopTimer = {
39
- start: function(){},
40
- elapsed: function(){ return 0; }
41
- };
42
-
43
- function ConsoleReporter(options) {
44
- var print = options.print,
45
- showColors = options.showColors || false,
46
- onComplete = options.onComplete || function() {},
47
- timer = options.timer || noopTimer,
48
- specCount,
49
- failureCount,
50
- failedSpecs = [],
51
- pendingCount,
52
- ansi = {
53
- green: '\x1B[32m',
54
- red: '\x1B[31m',
55
- yellow: '\x1B[33m',
56
- none: '\x1B[0m'
57
- },
58
- failedSuites = [];
59
-
60
- print('ConsoleReporter is deprecated and will be removed in a future version.');
61
-
62
- this.jasmineStarted = function() {
63
- specCount = 0;
64
- failureCount = 0;
65
- pendingCount = 0;
66
- print('Started');
67
- printNewline();
68
- timer.start();
69
- };
70
-
71
- this.jasmineDone = function() {
72
- printNewline();
73
- for (var i = 0; i < failedSpecs.length; i++) {
74
- specFailureDetails(failedSpecs[i]);
75
- }
76
-
77
- if(specCount > 0) {
78
- printNewline();
79
-
80
- var specCounts = specCount + ' ' + plural('spec', specCount) + ', ' +
81
- failureCount + ' ' + plural('failure', failureCount);
82
-
83
- if (pendingCount) {
84
- specCounts += ', ' + pendingCount + ' pending ' + plural('spec', pendingCount);
85
- }
86
-
87
- print(specCounts);
88
- } else {
89
- print('No specs found');
90
- }
91
-
92
- printNewline();
93
- var seconds = timer.elapsed() / 1000;
94
- print('Finished in ' + seconds + ' ' + plural('second', seconds));
95
- printNewline();
96
-
97
- for(i = 0; i < failedSuites.length; i++) {
98
- suiteFailureDetails(failedSuites[i]);
99
- }
100
-
101
- onComplete(failureCount === 0);
102
- };
103
-
104
- this.specDone = function(result) {
105
- specCount++;
106
-
107
- if (result.status == 'pending') {
108
- pendingCount++;
109
- print(colored('yellow', '*'));
110
- return;
111
- }
112
-
113
- if (result.status == 'passed') {
114
- print(colored('green', '.'));
115
- return;
116
- }
117
-
118
- if (result.status == 'failed') {
119
- failureCount++;
120
- failedSpecs.push(result);
121
- print(colored('red', 'F'));
122
- }
123
- };
124
-
125
- this.suiteDone = function(result) {
126
- if (result.failedExpectations && result.failedExpectations.length > 0) {
127
- failureCount++;
128
- failedSuites.push(result);
129
- }
130
- };
131
-
132
- return this;
133
-
134
- function printNewline() {
135
- print('\n');
136
- }
137
-
138
- function colored(color, str) {
139
- return showColors ? (ansi[color] + str + ansi.none) : str;
140
- }
141
-
142
- function plural(str, count) {
143
- return count == 1 ? str : str + 's';
144
- }
145
-
146
- function repeat(thing, times) {
147
- var arr = [];
148
- for (var i = 0; i < times; i++) {
149
- arr.push(thing);
150
- }
151
- return arr;
152
- }
153
-
154
- function indent(str, spaces) {
155
- var lines = (str || '').split('\n');
156
- var newArr = [];
157
- for (var i = 0; i < lines.length; i++) {
158
- newArr.push(repeat(' ', spaces).join('') + lines[i]);
159
- }
160
- return newArr.join('\n');
161
- }
162
-
163
- function specFailureDetails(result) {
164
- printNewline();
165
- print(result.fullName);
166
-
167
- for (var i = 0; i < result.failedExpectations.length; i++) {
168
- var failedExpectation = result.failedExpectations[i];
169
- printNewline();
170
- print(indent(failedExpectation.message, 2));
171
- print(indent(failedExpectation.stack, 2));
172
- }
173
-
174
- printNewline();
175
- }
176
-
177
- function suiteFailureDetails(result) {
178
- for (var i = 0; i < result.failedExpectations.length; i++) {
179
- printNewline();
180
- print(colored('red', 'An error was thrown in an afterAll'));
181
- printNewline();
182
- print(colored('red', 'AfterAll ' + result.failedExpectations[i].message));
183
-
184
- }
185
- printNewline();
186
- }
187
- }
188
-
189
- return ConsoleReporter;
190
- };