UNPKG

base-domain

Version:

simple module to help build Domain-Driven Design

24 lines (12 loc) 442 B
facade = require './init' Hobby = facade.getModel 'hobby' describe 'Entity', -> it 'has methods', -> hobby = new Hobby() hobby.name = 'alto sax' expect(hobby.getName()).to.equal 'alto sax' it 'is available from loading file by require', -> Hobby2 = require './domain/hobby' hobby2 = new Hobby2() hobby2.name = 'alto sax' expect(hobby2.getName()).to.equal 'alto sax'