mirror of
https://github.com/sky-systems/sky_phone.git
synced 2026-09-04 17:23:25 +00:00
FIX - share phone contacts through EasyShare
Load the server-canonical own contact instead of constructing an unsupported profile payload in the Phone app. Move canonical contact resolution before payload sanitization so self-contact transfers are validated and received correctly, with a regression contract test.
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { readFileSync } from 'node:fs'
|
||||
|
||||
import { describe, expect, it } from 'vitest'
|
||||
|
||||
const source = readFileSync(new URL('./PhoneApp.vue', import.meta.url), 'utf8')
|
||||
|
||||
describe('PhoneApp EasyShare contract', () => {
|
||||
it('loads the server-canonical own contact instead of creating a profile payload', () => {
|
||||
expect(source).toContain(
|
||||
"nuiCall<EasySharePayload>('easyshare:own-contact')",
|
||||
)
|
||||
expect(source).toContain('easyShare.open(response.data)')
|
||||
expect(source).not.toContain("kind: 'profile'")
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user