Skip to content

Commit

Permalink
Test for `builtin...
Browse files Browse the repository at this point in the history
  • Loading branch information
chgeo committed Jan 15, 2024
1 parent 27885a9 commit 6af8cf0
Showing 1 changed file with 19 additions and 10 deletions.
29 changes: 19 additions & 10 deletions test/typescript/apis/project/cds-core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,22 @@ l1.x
const l2 = cds.lazified({x: 42})
l2.x

const entity: cds.entity = new cds.entity
entity.drafts
const event: cds.event = new cds.event
event.elements
const type: cds.type = new cds.type
type.name
const array: cds.array = new cds.array
array.name
const struct: cds.struct = new cds.struct
struct.elements
const e: cds.entity = new cds.entity
e.drafts
cds.entity === cds.builtin.classes.entity

const ev: cds.event = new cds.event
ev.elements
cds.event === cds.builtin.classes.event

const t: cds.type = new cds.type
t.name
cds.type === cds.builtin.classes.type

const arr: cds.array = new cds.array
arr.name
cds.array === cds.builtin.classes.array

const s: cds.struct = new cds.struct
s.elements
cds.struct === cds.builtin.classes.struct

0 comments on commit 6af8cf0

Please sign in to comment.