MCPcopy Create free account
hub / github.com/codecombat/codecombat / specDone

Method specDone

app/views/TestView.js:148–160  ·  view source on GitHub ↗
(result)

Source from the content-addressed store, hash-verified

146 suiteStack: [],
147
148 specDone (result) {
149 if (result.status === 'failed') {
150 const report = {
151 suiteDescriptions: _.clone(this.suiteStack),
152 failMessages: (Array.from(result.failedExpectations).map((fe) => fe.message)),
153 testDescription: result.description
154 }
155 if (view != null) {
156 view.failureReports.push(report)
157 }
158 return (view != null ? view.renderSelectors('#failure-reports') : undefined)
159 }
160 },
161
162 suiteStarted (result) {
163 return this.suiteStack.push(result.description)

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected