All files / examples/blog orm.js

100% Statements 11/11
100% Branches 0/0
100% Functions 2/2
100% Lines 10/10

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 151x 1x 1x 1x 1x   92x 1x 1x       1x 1x  
const { create } = require('../../src/index');
const Article = require('./business-objects/article');
const Person = require('./business-objects/person');
const ArticleTag = require('./business-objects/article_tag');
const Tag = require('./business-objects/tag');
 
const getBusinessObjects = () => [Article, Person, ArticleTag, Tag];
const orm = create({
  getBusinessObjects: () => [Article, Person, ArticleTag, Tag],
  db: void 0
});
 
module.exports = orm;
module.exports.getBusinessObjects = getBusinessObjects;