Add Prettier formatting and Gitea Actions CI (format, typecheck, test, build)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017Qxbkp4tA7G5SCWjzWuxmE
This commit is contained in:
+16
-7
@@ -47,12 +47,18 @@ describe('KV types (section 7)', () => {
|
||||
db.child('users').child('1').set({ username: 'a', age: 1 })
|
||||
// @ts-expect-error wrong value type
|
||||
db.child('users').set('1', { username: 'a' })
|
||||
db.child('profile').child('9').setMany([
|
||||
['age', 3],
|
||||
['username', 'x'],
|
||||
])
|
||||
// @ts-expect-error value doesn't match its key
|
||||
db.child('profile').child('9').setMany([['age', 'x']])
|
||||
db.child('profile')
|
||||
.child('9')
|
||||
.setMany([
|
||||
['age', 3],
|
||||
['username', 'x'],
|
||||
])
|
||||
db.child('profile')
|
||||
.child('9')
|
||||
.setMany([
|
||||
// @ts-expect-error value doesn't match its key
|
||||
['age', 'x'],
|
||||
])
|
||||
})
|
||||
|
||||
it('types listings', () => {
|
||||
@@ -82,7 +88,10 @@ describe('event types', () => {
|
||||
orders.child('o1').append([{ type: 'paid' }])
|
||||
// @ts-expect-error not an OrderEvent
|
||||
orders.append('o1', [{ type: 'refunded' }])
|
||||
orders.child('o1').child('shipments').append('s1', [{ carrier: 'x' }])
|
||||
orders
|
||||
.child('o1')
|
||||
.child('shipments')
|
||||
.append('s1', [{ carrier: 'x' }])
|
||||
})
|
||||
|
||||
it('types read results', () => {
|
||||
|
||||
Reference in New Issue
Block a user