diff options
| author | Henry Jameson <me@hjkos.com> | 2022-07-31 12:36:02 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2022-07-31 12:36:02 +0300 |
| commit | fc18673030513fa663289d051bb0733a97b8e053 (patch) | |
| tree | 97114e0544414689c08fc04f50bcfbb22689e725 /test/unit/specs/services | |
| parent | fddb531ed20b31c44e6911418e7bbb884836c40a (diff) | |
deal with no-prototype-builtins
Diffstat (limited to 'test/unit/specs/services')
| -rw-r--r-- | test/unit/specs/services/theme_data/sanity_checks.spec.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/specs/services/theme_data/sanity_checks.spec.js b/test/unit/specs/services/theme_data/sanity_checks.spec.js index f0072e7d..f94c6a08 100644 --- a/test/unit/specs/services/theme_data/sanity_checks.spec.js +++ b/test/unit/specs/services/theme_data/sanity_checks.spec.js @@ -6,7 +6,7 @@ const checkColors = (output) => { expect(v, key).to.be.an('object') expect(v, key).to.include.all.keys('r', 'g', 'b') 'rgba'.split('').forEach(k => { - if ((k === 'a' && v.hasOwnProperty('a')) || k !== 'a') { + if ((k === 'a' && Object.prototype.hasOwnProperty.call(v, 'a')) || k !== 'a') { expect(v[k], key + '.' + k).to.be.a('number') expect(v[k], key + '.' + k).to.be.least(0) expect(v[k], key + '.' + k).to.be.most(k === 'a' ? 1 : 255) |
