restructure
This commit is contained in:
@@ -1,9 +1,6 @@
|
|||||||
.github/
|
.github/
|
||||||
src/
|
src/
|
||||||
|
tests/
|
||||||
.editorconfig
|
.editorconfig
|
||||||
index.spec.js
|
|
||||||
index.test.js
|
|
||||||
utils.spec.js
|
|
||||||
utils.test.js
|
|
||||||
jest.config.ts
|
jest.config.ts
|
||||||
tsconfig.json
|
tsconfig.json
|
||||||
@@ -2,7 +2,7 @@ import crypto from 'node:crypto'
|
|||||||
Object.defineProperty(global, 'crypto', { value: { subtle: crypto.webcrypto.subtle }})
|
Object.defineProperty(global, 'crypto', { value: { subtle: crypto.webcrypto.subtle }})
|
||||||
|
|
||||||
import { describe, expect, test } from '@jest/globals'
|
import { describe, expect, test } from '@jest/globals'
|
||||||
import jwt, { JwtAlgorithm } from '.'
|
import jwt, { JwtAlgorithm } from '../src/index'
|
||||||
|
|
||||||
type Dataset = {
|
type Dataset = {
|
||||||
public: string
|
public: string
|
||||||
@@ -11,7 +11,7 @@ import {
|
|||||||
textToBase64Url,
|
textToBase64Url,
|
||||||
pemToBinary,
|
pemToBinary,
|
||||||
importTextSecret
|
importTextSecret
|
||||||
} from './utils'
|
} from '../src/utils'
|
||||||
|
|
||||||
describe('Converters', () => {
|
describe('Converters', () => {
|
||||||
const testString = 'cloudflare-worker-jwt'
|
const testString = 'cloudflare-worker-jwt'
|
||||||
Reference in New Issue
Block a user