Coveralls logob
Coveralls logo
  • Home
  • Features
  • Pricing
  • Docs
  • Sign In

uber / deck.gl / 13779

18 Sep 2019 - 0:00 coverage decreased (-2.9%) to 79.902%
13779

Pull #3623

travis-ci-com

9181eb84f9c35729a3bad740fb7f9d93?size=18&default=identiconweb-flow
beta.2
Pull Request #3623: Bump dependency versions

3405 of 4619 branches covered (73.72%)

Branch coverage included in aggregate %.

7031 of 8442 relevant lines covered (83.29%)

5687.45 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

93.33
/modules/json/src/utils/shallow-equal-objects.js
1
// TODO - can we reuse the core util? Assuming we don't want to export it
4×
2

3
/* eslint-disable complexity */
4

5
// Compares two objects to see if their keys are shallowly equal
6
export function shallowEqualObjects(a, b) {
7
  if (a === b) {
6×
8
    return true;
1×
9
  }
10

11
  if (typeof a !== 'object' || a === null || typeof b !== 'object' || b === null) {
5×
12
    return false;
1×
13
  }
14

15
  if (Object.keys(a).length !== Object.keys(b).length) {
4×
16
    return false;
1×
17
  }
18

19
  for (const key in a) {
3×
20
    if (!(key in b) || a[key] !== b[key]) {
8×
21
      return false;
2×
22
    }
23
  }
24
  for (const key in b) {
1×
25
    if (!(key in a)) {
Branches [[6, 0]] missed. 3×
UNCOV
26
      return false;
!
27
    }
28
  }
29
  return true;
1×
30
}
Troubleshooting · Open an Issue · Sales · Support · ENTERPRISE · CAREERS · STATUS
BLOG · TWITTER · Legal & Privacy · Supported CI Services · What's a CI service? · Automated Testing

© 2019 Coveralls, LLC