Use Jasmine's arrayContains to look for duplicate deprecations

[#154746527]
This commit is contained in:
Gregg Van Hove
2018-02-05 14:24:14 -08:00
parent c142490c69
commit 32f99ef99d

View File

@@ -339,7 +339,7 @@ jasmineRequire.HtmlReporter = function(j$) {
if (result && result.deprecationWarnings) {
for(var i = 0; i < result.deprecationWarnings.length; i++) {
var warning = result.deprecationWarnings[i].message;
if (deprecationWarnings.indexOf(warning) < 0) {
if (!j$.util.arrayContains(warning)) {
deprecationWarnings.push(warning);
}
}