Deprecate HtmlReporter and HtmlSpecFilter
This commit is contained in:
@@ -9,6 +9,7 @@ jasmineRequire.HtmlReporter = function(j$) {
|
||||
* @implements {Reporter}
|
||||
* @param options Options object. See lib/jasmine-core/boot1.js for details.
|
||||
* @since 1.2.0
|
||||
* @deprecated
|
||||
*/
|
||||
class HtmlReporter {
|
||||
#env;
|
||||
@@ -44,6 +45,9 @@ jasmineRequire.HtmlReporter = function(j$) {
|
||||
* @name HtmlReporter#initialize
|
||||
*/
|
||||
initialize() {
|
||||
this.#env.deprecated(
|
||||
'HtmlReporter and HtmlSpecFilter are deprecated. Use HtmlReporterV2 instead.'
|
||||
);
|
||||
this.#clearPrior();
|
||||
this.#config = this.#env ? this.#env.configuration() : {};
|
||||
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
jasmineRequire.HtmlSpecFilter = function() {
|
||||
jasmineRequire.HtmlSpecFilter = function(j$) {
|
||||
'use strict';
|
||||
|
||||
function HtmlSpecFilter(options) {
|
||||
j$.getEnv().deprecated(
|
||||
'HtmlReporter and HtmlSpecFilter are deprecated. Use HtmlReporterV2 instead.'
|
||||
);
|
||||
|
||||
const filterString =
|
||||
options &&
|
||||
options.filterString() &&
|
||||
@@ -14,6 +18,7 @@ jasmineRequire.HtmlSpecFilter = function() {
|
||||
* @function
|
||||
* @param {string} specName The full name of the spec
|
||||
* @returns {boolean}
|
||||
* @deprcated
|
||||
*/
|
||||
this.matches = function(specName) {
|
||||
return filterPattern.test(specName);
|
||||
|
||||
@@ -14,6 +14,6 @@ jasmineRequire.html = function(j$) {
|
||||
j$.HtmlReporterV2Urls = jasmineRequire.HtmlReporterV2Urls(j$);
|
||||
j$.HtmlReporterV2 = jasmineRequire.HtmlReporterV2(j$);
|
||||
j$.QueryString = jasmineRequire.QueryString();
|
||||
j$.HtmlSpecFilter = jasmineRequire.HtmlSpecFilter();
|
||||
j$.HtmlSpecFilter = jasmineRequire.HtmlSpecFilter(j$);
|
||||
j$.private.HtmlSpecFilterV2 = jasmineRequire.HtmlSpecFilterV2();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user