• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1class Foo {
2  constructor (x=33) {
3    this.x = x ? x : 99
4    if (this.x) {
5      console.info('covered')
6    } else {
7      console.info('uncovered')
8    }
9    this.methodC()
10  }
11  methodA () {
12    console.info('covered')
13  }
14  methodB () {
15    console.info('uncovered')
16  }
17  methodC () {
18    console.info('covered')
19  }
20  methodD () {
21    console.info('uncovered')
22  }
23}
24
25const a = new Foo(0)
26const b = new Foo(33)
27a.methodA()
28