Skip to content

Commit

Permalink
dx: move tests to tests folder to satisfy dependency cruiser
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdjohnson committed Feb 18, 2025
1 parent f0071f3 commit 4ac2306
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ describe('ConnectionViewModel', () => {
const openAiModels = OpenAiModelFactory.buildList(3)

const connectionModel = await ConnectionModelFactory.create({
type:'OpenAi',
type: 'OpenAi',
host: 'http://openAi-host:4444/v1',
})

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest'
import { generateMock } from '@anatine/zod-mock'
import moment, { Moment } from 'moment'

import { ChatModel } from '~/core/chat/ChatModel'
import { ChatModelFactory } from '~/core/chat/ChatModel.factory'
import { ChatViewModel } from '~/core/chat/ChatViewModel'

import { chatToDateLabel } from '~/utils/chatToDateLabel'

const createChatModel = (lastMessageTime: Moment) => {
const chat = { ...generateMock(ChatModel), lastMessageTimestamp: lastMessageTime.valueOf() }
const chat = ChatModelFactory.build({ lastMessageTimestamp: lastMessageTime.valueOf() })
return new ChatViewModel(chat)
}

Expand Down

0 comments on commit 4ac2306

Please sign in to comment.