blob: 710400602bae8796ecb22e1e9d43565fb6bd084f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
var should = require('should');
module.exports = {
blocks: {
// Simple test
hello: function(blk) {
return 'Hello ' + blk.body + '!';
},
// Test using the conetxt "this"
testContext: function(s) {
this.should.have.property('config');
this.should.have.property('log');
this.should.have.property('options');
this.should.have.property('resolve').which.is.a.function;
this.should.have.property('book').which.equal(this);
return 'Hello ' + s + '!';
}
}
};
|