1
0

restructure

This commit is contained in:
2024-01-20 23:47:47 +01:00
parent 6a14cc5071
commit 0b6881ef12
3 changed files with 3 additions and 6 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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'