HtmlReporterV2 doesn't need specStarted
This commit is contained in:
@@ -1058,8 +1058,6 @@ jasmineRequire.HtmlReporterV2 = function(j$) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
specStarted() {}
|
|
||||||
|
|
||||||
specDone(result) {
|
specDone(result) {
|
||||||
this.#stateBuilder.specDone(result);
|
this.#stateBuilder.specDone(result);
|
||||||
this.#symbols.append(result, this.#config);
|
this.#symbols.append(result, this.#config);
|
||||||
|
|||||||
@@ -300,11 +300,6 @@ describe('HtmlReporterV2', function() {
|
|||||||
reporter.initialize();
|
reporter.initialize();
|
||||||
reporter.jasmineStarted({});
|
reporter.jasmineStarted({});
|
||||||
reporter.suiteStarted({ id: 1 });
|
reporter.suiteStarted({ id: 1 });
|
||||||
reporter.specStarted({
|
|
||||||
id: 1,
|
|
||||||
passedExpectations: [],
|
|
||||||
failedExpectations: []
|
|
||||||
});
|
|
||||||
reporter.specDone({
|
reporter.specDone({
|
||||||
id: 1,
|
id: 1,
|
||||||
status: 'passed',
|
status: 'passed',
|
||||||
@@ -361,7 +356,6 @@ describe('HtmlReporterV2', function() {
|
|||||||
passedExpectations: [{ passed: true }],
|
passedExpectations: [{ passed: true }],
|
||||||
duration: 1230
|
duration: 1230
|
||||||
};
|
};
|
||||||
reporter.specStarted(specResult);
|
|
||||||
reporter.specDone(specResult);
|
reporter.specDone(specResult);
|
||||||
|
|
||||||
reporter.suiteStarted({
|
reporter.suiteStarted({
|
||||||
@@ -379,7 +373,6 @@ describe('HtmlReporterV2', function() {
|
|||||||
passedExpectations: [{ passed: true }],
|
passedExpectations: [{ passed: true }],
|
||||||
duration: 1240
|
duration: 1240
|
||||||
};
|
};
|
||||||
reporter.specStarted(specResult);
|
|
||||||
reporter.specDone(specResult);
|
reporter.specDone(specResult);
|
||||||
|
|
||||||
reporter.suiteDone({
|
reporter.suiteDone({
|
||||||
@@ -398,7 +391,6 @@ describe('HtmlReporterV2', function() {
|
|||||||
passedExpectations: [],
|
passedExpectations: [],
|
||||||
duration: 2090
|
duration: 2090
|
||||||
};
|
};
|
||||||
reporter.specStarted(specResult);
|
|
||||||
reporter.specDone(specResult);
|
reporter.specDone(specResult);
|
||||||
|
|
||||||
reporter.suiteDone({
|
reporter.suiteDone({
|
||||||
@@ -863,7 +855,6 @@ describe('HtmlReporterV2', function() {
|
|||||||
});
|
});
|
||||||
reporter.initialize();
|
reporter.initialize();
|
||||||
reporter.jasmineStarted({ totalSpecsDefined: 1 });
|
reporter.jasmineStarted({ totalSpecsDefined: 1 });
|
||||||
reporter.specStarted(specStatus);
|
|
||||||
reporter.specDone(specStatus);
|
reporter.specDone(specStatus);
|
||||||
reporter.jasmineDone({});
|
reporter.jasmineDone({});
|
||||||
});
|
});
|
||||||
@@ -886,7 +877,6 @@ describe('HtmlReporterV2', function() {
|
|||||||
});
|
});
|
||||||
reporter.initialize();
|
reporter.initialize();
|
||||||
reporter.jasmineStarted({ totalSpecsDefined: 1 });
|
reporter.jasmineStarted({ totalSpecsDefined: 1 });
|
||||||
reporter.specStarted(specStatus);
|
|
||||||
reporter.specDone(specStatus);
|
reporter.specDone(specStatus);
|
||||||
reporter.jasmineDone({});
|
reporter.jasmineDone({});
|
||||||
});
|
});
|
||||||
@@ -914,7 +904,6 @@ describe('HtmlReporterV2', function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function reportWithSpecStatus(specStatus) {
|
function reportWithSpecStatus(specStatus) {
|
||||||
reporter.specStarted(specStatus);
|
|
||||||
reporter.specDone(specStatus);
|
reporter.specDone(specStatus);
|
||||||
reporter.jasmineDone({});
|
reporter.jasmineDone({});
|
||||||
}
|
}
|
||||||
@@ -992,7 +981,6 @@ describe('HtmlReporterV2', function() {
|
|||||||
passedExpectations: [{ passed: true }],
|
passedExpectations: [{ passed: true }],
|
||||||
failedExpectations: []
|
failedExpectations: []
|
||||||
};
|
};
|
||||||
reporter.specStarted(passingSpecResult);
|
|
||||||
reporter.specDone(passingSpecResult);
|
reporter.specDone(passingSpecResult);
|
||||||
|
|
||||||
const failingSpecResult = {
|
const failingSpecResult = {
|
||||||
@@ -1037,12 +1025,10 @@ describe('HtmlReporterV2', function() {
|
|||||||
status: 'failed',
|
status: 'failed',
|
||||||
failedExpectations: [{ message: 'My After All Exception' }]
|
failedExpectations: [{ message: 'My After All Exception' }]
|
||||||
};
|
};
|
||||||
reporter.specStarted(failingSpecResult);
|
|
||||||
reporter.specDone(failingSpecResult);
|
reporter.specDone(failingSpecResult);
|
||||||
reporter.suiteDone(passingSuiteResult);
|
reporter.suiteDone(passingSuiteResult);
|
||||||
reporter.suiteDone(failingSuiteResult);
|
reporter.suiteDone(failingSuiteResult);
|
||||||
reporter.suiteDone(passingSuiteResult);
|
reporter.suiteDone(passingSuiteResult);
|
||||||
reporter.specStarted(failingSpecResultWithDebugLogs);
|
|
||||||
reporter.specDone(failingSpecResultWithDebugLogs);
|
reporter.specDone(failingSpecResultWithDebugLogs);
|
||||||
reporter.jasmineDone({});
|
reporter.jasmineDone({});
|
||||||
});
|
});
|
||||||
@@ -1175,7 +1161,6 @@ describe('HtmlReporterV2', function() {
|
|||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
reporter.specStarted(failingSpecResult);
|
|
||||||
reporter.specDone(failingSpecResult);
|
reporter.specDone(failingSpecResult);
|
||||||
reporter.jasmineDone({
|
reporter.jasmineDone({
|
||||||
failedExpectations: [
|
failedExpectations: [
|
||||||
|
|||||||
@@ -85,8 +85,6 @@ jasmineRequire.HtmlReporterV2 = function(j$) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
specStarted() {}
|
|
||||||
|
|
||||||
specDone(result) {
|
specDone(result) {
|
||||||
this.#stateBuilder.specDone(result);
|
this.#stateBuilder.specDone(result);
|
||||||
this.#symbols.append(result, this.#config);
|
this.#symbols.append(result, this.#config);
|
||||||
|
|||||||
Reference in New Issue
Block a user