CEC-1167 ota admin portal (#127)

* Add test coverage script

* Remove unnecessary check

* CEC-1167 unit test and code coverage

* included sonar job

* updated the workflow

* updated sonar properties

* updated sonar properties

* updated sonar properties

* updated sonar properties

* updated sonar properties

* updated sonar properties

* updated sonar properties

* updated sonar properties

Co-authored-by: jwu-fisker <jwu@fiskerinc.com>
This commit is contained in:
venkats09
2022-03-15 09:36:01 -07:00
committed by GitHub
parent f952ccdfb3
commit 220716051b
4 changed files with 31 additions and 8 deletions

View File

@@ -3,11 +3,8 @@ import { TEST_TOKEN } from "./testing";
describe("JWT Helper", () => {
it("Should decode", () => {
const start = Date.now()
const v = parsePayload(TEST_TOKEN);
const diff = Date.now() - start;
expect(diff < 2).toBeTruthy();
expect(typeof v).toEqual("object");
expect(v.exp).toBeTruthy();
});