UNPKG

component-dbs-core

Version:

DTO objects shared among device backend

45 lines 1.94 kB
"use strict"; /* istanbul ignore file */ /* eslint-disable */ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.JwtCheckTestSuite = void 0; const testCases_1 = require("./testCases"); const jwtValidator_1 = require("../jwtValidator"); class JwtCheckTestSuite { constructor() { this.params = [ [ testCases_1.JwtCheckTestCases.VALID_TOKEN, jwtValidator_1.JWT_CHECK_RESULT.VALID_TOKEN, ], [ testCases_1.JwtCheckTestCases.EXPIRED_TOKEN, jwtValidator_1.JWT_CHECK_RESULT.ERROR_TOKEN_EXPIRED, ], [ testCases_1.JwtCheckTestCases.MALFORMED_TOKEN, jwtValidator_1.JWT_CHECK_RESULT.ERROR_MALFORMED_TOKEN, ], [ testCases_1.JwtCheckTestCases.UNHANDLED_ERROR, jwtValidator_1.JWT_CHECK_RESULT.ERROR_UNHANDLED, ] ]; } getParameterForTestCase(testCase) { return __awaiter(this, void 0, void 0, function* () { return { accessToken: "accessToken", testCase: testCase }; }); } } exports.JwtCheckTestSuite = JwtCheckTestSuite; //# sourceMappingURL=jwtCheckTestSuite.js.map