-
Notifications
You must be signed in to change notification settings - Fork 0
/
robe.js
33 lines (26 loc) · 862 Bytes
/
robe.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
var Robe = require('../')(config.db);
describe('Robe', function() {
describe('Factory', function () {
before(function () {
this.robe = new Robe('TestModel');
});
it('should have a .all function', function() {
expect(this.robe.all).to.be.a('function');
});
it('should have a .find function', function() {
expect(this.robe.find).to.be.a('function');
});
it('should have a .findOne function', function() {
expect(this.robe.findOne).to.be.a('function');
});
it('should have a .insert function', function() {
expect(this.robe.insert).to.be.a('function');
});
it('should have a .byId function', function() {
expect(this.robe.byId).to.be.a('function');
});
it('should have a .save function', function() {
expect(this.robe.save).to.be.a('function');
});
});
});