Refactor: Modularize home page (#1372)
* Move HTTP headers section to component * Move import cURL modal to component * Move Notes, OAuth token modal to seperate components * Fix deepcode analysis * Move parameters section to seperate component * Move codegen modal to component * ES6
This commit is contained in:
@@ -157,7 +157,7 @@ class Expectation {
|
||||
toBeType(expectedType) {
|
||||
const actualType = typeof this.expectValue
|
||||
if (
|
||||
[
|
||||
![
|
||||
"string",
|
||||
"boolean",
|
||||
"number",
|
||||
@@ -166,7 +166,7 @@ class Expectation {
|
||||
"bigint",
|
||||
"symbol",
|
||||
"function",
|
||||
].indexOf(expectedType) < 0
|
||||
].includes(expectedType)
|
||||
) {
|
||||
return this._fail(
|
||||
this._fmtNot(
|
||||
|
||||
Reference in New Issue
Block a user