chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:34:48 +08:00
commit 77bb5bf71f
3762 changed files with 353249 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
import { expect, test } from 'vitest'
import _ from 'lodash'
import * as config from './config'
import * as chat from '../src'
const invalidApiUrl = config.get('API_URL') + '1234'
test('client throws if webhook id is incorrect', async () => {
const client = new chat.Client({ apiUrl: invalidApiUrl })
const userPromise = client.createUser({ id: 'invalid' })
expect(userPromise).rejects.toThrow(chat.ChatClientError)
})