From 05df830b231768105489025d867e0367417f4c26 Mon Sep 17 00:00:00 2001 From: Lexus Drumgold Date: Wed, 1 Feb 2023 17:11:21 -0500 Subject: [PATCH] refactor(enums)!: remove `JwtType` Signed-off-by: Lexus Drumgold --- src/enums/__tests__/jwt-type.spec-d.ts | 26 -------------------------- src/enums/index.ts | 1 - src/enums/jwt-type.ts | 19 ------------------- 3 files changed, 46 deletions(-) delete mode 100644 src/enums/__tests__/jwt-type.spec-d.ts delete mode 100644 src/enums/jwt-type.ts diff --git a/src/enums/__tests__/jwt-type.spec-d.ts b/src/enums/__tests__/jwt-type.spec-d.ts deleted file mode 100644 index 64985a8a..00000000 --- a/src/enums/__tests__/jwt-type.spec-d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * @file Type Tests - JwtType - * @module tutils/enums/tests/unit-d/JwtType - */ - -import type TestSubject from '../jwt-type' - -describe('unit-d:enums/JwtType', () => { - it('should match [ACCESS = "ACCESS"]', () => { - expectTypeOf() - .toHaveProperty('ACCESS') - .toMatchTypeOf<'ACCESS'>() - }) - - it('should match [REFRESH = "REFRESH"]', () => { - expectTypeOf() - .toHaveProperty('REFRESH') - .toMatchTypeOf<'REFRESH'>() - }) - - it('should match [VERIFICATION = "VERIFICATION"]', () => { - expectTypeOf() - .toHaveProperty('VERIFICATION') - .toMatchTypeOf<'VERIFICATION'>() - }) -}) diff --git a/src/enums/index.ts b/src/enums/index.ts index 00524847..0d21acbe 100644 --- a/src/enums/index.ts +++ b/src/enums/index.ts @@ -8,7 +8,6 @@ export { default as BsonTypeAlias } from './bson-type-alias' export { default as BsonTypeCode } from './bson-type-code' export { default as CompareResult } from './compare-result' export { default as HttpStatus } from './http-status' -export { default as JwtType } from './jwt-type' export { default as NodeEnv } from './node-env' export { default as ProjectRule } from './project-rule' export { default as SortOrder } from './sort-order' diff --git a/src/enums/jwt-type.ts b/src/enums/jwt-type.ts deleted file mode 100644 index e93b56e2..00000000 --- a/src/enums/jwt-type.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * @file Enums - JwtType - * @module tutils/enums/JwtType - */ - -/** - * Types of JSON web tokens. - * - * @see https://jwt.io - * - * @enum {Uppercase} - */ -enum JwtType { - ACCESS = 'ACCESS', - REFRESH = 'REFRESH', - VERIFICATION = 'VERIFICATION' -} - -export default JwtType