mirror of
https://github.com/stolksdorf/homebrewery.git
synced 2025-12-13 18:06:03 +00:00
24 lines
532 B
JavaScript
24 lines
532 B
JavaScript
const testing = require('./test.init.js');
|
|
|
|
const BrewDB = require('db.js');
|
|
const BrewData = require('brew.data.js');
|
|
|
|
|
|
describe('BrewDB', () => {
|
|
before('Await DB', ()=>{
|
|
return BrewDB.connect()
|
|
});
|
|
|
|
it('generates ID on save', () => {
|
|
return BrewData.create({
|
|
text : "Brew Text"
|
|
}).then((brew) => {
|
|
//should.exist(brew);
|
|
brew.should.have.property('editId').that.is.a('string');
|
|
brew.should.have.property('shareId').that.is.a('string');
|
|
brew.should.have.property('text').that.is.a('string');
|
|
})
|
|
|
|
});
|
|
|
|
}); |