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:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user