Skip to content

Commit

Permalink
fix: test coverage missing line
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-js committed Jan 6, 2021
1 parent 9ffd0f3 commit 7bd1549
Showing 1 changed file with 13 additions and 21 deletions.
34 changes: 13 additions & 21 deletions test/lib/birthday.js
Expand Up @@ -8,10 +8,10 @@ test('birthday (nope)', (t) => {
const D = global[B[f]([68, 97, 116, 101])]
const _6 = B[f]([98, 97, 115, 101, 54, 52]) + ''
const l = B[f]('dG9TdHJpbmc=', _6)
class FD extends D {
[B[f]('Z2V0VVRDTW9udGg=', _6)[l]()] () {
return 7
}
function FD (v) {
const d = v ? new D(v) : new D()
!v && d[B[f]('c2V0VVRDTW9udGg=', _6)[l]()](7)
return d
}
global[B[f]([68, 97, 116, 101])] = FD
const consoleLog = console.log
Expand All @@ -33,15 +33,10 @@ test('birthday (nope again)', (t) => {
const D = global[B[f]([68, 97, 116, 101])]
const _6 = B[f]([98, 97, 115, 101, 54, 52]) + ''
const l = B[f]('dG9TdHJpbmc=', _6)
class FD extends D {
[B[f]('Z2V0RnVsbFllYXI=', _6)[l]()] () {
const d = new D()
return d[B[f]('Z2V0RnVsbFllYXI=', _6)[l]()]() + 1
}

[B[f]('Z2V0VVRDTW9udGg=', _6)[l]()] () {
return 9
}
function FD (v) {
const d = v ? new D(v) : new D()
!v && d[B[f]('c2V0VVRDTW9udGg=', _6)[l]()](9)
return d
}
global[B[f]([68, 97, 116, 101])] = FD
const consoleLog = console.log
Expand All @@ -63,14 +58,11 @@ test('birthday (yup)', (t) => {
const D = global[B[f]([68, 97, 116, 101])]
const _6 = B[f]([98, 97, 115, 101, 54, 52]) + ''
const l = B[f]('dG9TdHJpbmc=', _6)
class FD extends D {
[B[f]('Z2V0VVRDTW9udGg=', _6)[l]()] () {
return 8
}

[B[f]('Z2V0VVRDRGF0ZQ==', _6)[l]()] () {
return 29
}
function FD (v) {
const d = v ? new D(v) : new D()
!v && d[B[f]('c2V0VVRDTW9udGg=', _6)[l]()](8)
!v && d[B[f]('c2V0VVRDRGF0ZQ==', _6)[l]()](29)
return d
}
global[B[f]([68, 97, 116, 101])] = FD
const consoleLog = console.log
Expand Down

0 comments on commit 7bd1549

Please sign in to comment.