Upgrade package, Implement fake API, version info get from API. Waiting for real API

This commit is contained in:
schooltechx 2023-04-07 13:49:34 +07:00
parent faaae95956
commit 5b2d7ea68d
16 changed files with 853 additions and 615 deletions

View file

@ -1,8 +1,7 @@
//TDD
//TDD Implement unitest here
import {it,expect } from 'vitest'
import {getContact} from './info'
it('test getContact() ',async ()=>{
const result = await getContact()
const result = {company_name:"กองสรรหาบุคคล",Country:"Thailand"}
expect(result.company_name).toBe("กองสรรหาบุคคล")
expect(result.Country).toBe("Thailand")
})