Refactor imports: use file extension, improve tree shaking, update tests

This commit is contained in:
Alex Gleason
2023-05-12 11:00:14 -05:00
committed by fiatjaf_
parent 9f896479d0
commit 08885ab8da
42 changed files with 244 additions and 212 deletions

View File

@@ -1,7 +1,10 @@
import {utils, type Event} from '.'
import {buildEvent} from './test-helpers'
import {buildEvent} from './test-helpers.ts'
import {
insertEventIntoAscendingList,
insertEventIntoDescendingList,
} from './utils.ts'
const {insertEventIntoAscendingList, insertEventIntoDescendingList} = utils
import type {Event} from './event.ts'
describe('inserting into a desc sorted list of events', () => {
test('insert into an empty list', async () => {