We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1447a47 commit 3e75849Copy full SHA for 3e75849
test/test.js
@@ -64,10 +64,16 @@ describe('hapi-starter-kit', () => {
64
expect(() => starterKit.init(config)).to.throw('You should call init() only once.');
65
});
66
67
- it('should set the config and server objects', () => {
+ it('should set the config, server and sequelize objects', () => {
68
+ const resultingConfig = Object.assign({}, config);
69
+
70
+ // Default config if not provided.
71
+ resultingConfig.database.modelPaths = ['lib/**/model.js', 'lib/**/models/*.js'];
72
73
starterKit.init(config);
- expect(starterKit.config).to.equal(config);
74
+ expect(starterKit.config).to.deep.equal(resultingConfig);
75
expect(starterKit.server).to.be.an('object');
76
+ expect(starterKit.sequelize).to.be.an('object');
77
78
79
0 commit comments