(em: EntityManager)
| 24 | } |
| 25 | |
| 26 | async function createEntities(em: EntityManager) { |
| 27 | const author = new Author(); |
| 28 | author.id = '1'; |
| 29 | author.name = 'Bradley Jones'; |
| 30 | |
| 31 | const book = new Book(); |
| 32 | book.id = '2'; |
| 33 | book.name = 'C++ in 21 days'; |
| 34 | book.author = Reference.create(author); |
| 35 | |
| 36 | await em.persist([author, book]).flush(); |
| 37 | return author; |
| 38 | } |
| 39 | |
| 40 | describe('sqlite driver', () => { |
| 41 | let orm: MikroORM<SqliteDriver>; |
no test coverage detected