move to bun and bun:test and remove jest.

This commit is contained in:
fiatjaf
2023-12-16 14:53:32 -03:00
parent 1357642575
commit 3d541e537e
36 changed files with 130 additions and 4356 deletions

View File

@@ -1,3 +1,4 @@
import { describe, test, expect } from 'bun:test'
import { finishEvent } from './event.ts'
import { getPublicKey } from './keys.ts'
import { Reaction, ShortTextNote } from './kinds.ts'
@@ -21,7 +22,7 @@ describe('finishReactionEvent + getReactedEventPointer', () => {
privateKey,
)
it('should create a signed event from a minimal template', () => {
test('should create a signed event from a minimal template', () => {
const template = {
created_at: 1617932115,
}
@@ -47,7 +48,7 @@ describe('finishReactionEvent + getReactedEventPointer', () => {
expect(reactedEventPointer!.author).toEqual(reactedEvent.pubkey)
})
it('should create a signed event from a filled template', () => {
test('should create a signed event from a filled template', () => {
const template = {
tags: [['nonstandard', 'tag']],
content: '👍',