Skip to content

Commit

Permalink
refactor: let to const
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 committed Jan 27, 2020
1 parent f816ad0 commit 870484d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions functions/postwomanTesting.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class Expectation {
);
}
toBeLevel2xx() {
let code = parseInt(this.expectValue);
const code = parseInt(this.expectValue);
if (Number.isNaN(code)) {
return this._fail(
`Expected 200-level status but could not parse value ${this.expectValue}`
Expand All @@ -128,7 +128,7 @@ class Expectation {
);
}
toBeLevel3xx() {
let code = parseInt(this.expectValue);
const code = parseInt(this.expectValue);
if (Number.isNaN(code)) {
return this._fail(
`Expected 300-level status but could not parse value ${this.expectValue}`
Expand All @@ -143,7 +143,7 @@ class Expectation {
);
}
toBeLevel4xx() {
let code = parseInt(this.expectValue);
const code = parseInt(this.expectValue);
if (Number.isNaN(code)) {
return this._fail(
`Expected 400-level status but could not parse value ${this.expectValue}`
Expand All @@ -158,7 +158,7 @@ class Expectation {
);
}
toBeLevel5xx() {
let code = parseInt(this.expectValue);
const code = parseInt(this.expectValue);
if (Number.isNaN(code)) {
return this._fail(
`Expected 500-level status but could not parse value ${this.expectValue}`
Expand Down

0 comments on commit 870484d

Please sign in to comment.