test: Modernize and convert some test in `main.js` to async/await (#1456)

* convert some test to async/await

* Update main.js

* use await

Co-authored-by: Linus Unnebäck <linus@folkdatorn.se>

* take back should accept custom HoSt header

* remove trailing space

Co-authored-by: Linus Unnebäck <linus@folkdatorn.se>
This commit is contained in:
Jimmy Wärting 2022-01-17 21:48:43 +01:00 committed by GitHub
parent 1028f83708
commit 015798edc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 786 additions and 948 deletions

View File

@ -53,7 +53,6 @@
"chai-iterator": "^3.0.2",
"chai-string": "^1.5.0",
"coveralls": "^3.1.0",
"delay": "^5.0.0",
"form-data": "^4.0.0",
"formdata-node": "^4.2.4",
"mocha": "^9.1.3",

File diff suppressed because it is too large Load Diff