Upgrade package, Implement fake API, version info get from API. Waiting for real API
This commit is contained in:
parent
faaae95956
commit
5b2d7ea68d
16 changed files with 853 additions and 615 deletions
9
cms/src/lib/components/Exam.ts
Normal file
9
cms/src/lib/components/Exam.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
export interface Exam {
|
||||
id:string;
|
||||
title:string;
|
||||
img?:string;
|
||||
start:Date|string;
|
||||
date?:string;
|
||||
institute_id?:number
|
||||
institute?:string
|
||||
}
|
||||
|
|
@ -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")
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue