fix(fullstack-jwt.js): Got unit test coverage back to 100%

This commit is contained in:
Chris Troutner
2022-01-20 07:53:12 -08:00
parent 7b112a13d4
commit 5fc72be10c
-6
View File
@@ -52,12 +52,6 @@ class FullStackJWT {
// Get's a JWT token from FullStack.cash.
async getJWT () {
try {
// Skip connecting FullStack.cash auth server to the network if this is an E2E test.
if (process.env.TEST_TYPE === 'e2e') {
this.apiToken = 'faketoken'
return this.apiToken
}
// Log into the auth server.
await this.jwtLib.register()