Skip to content

Commit

Permalink
Test extending config object with prose properties
Browse files Browse the repository at this point in the history
  • Loading branch information
dhcole committed May 26, 2015
1 parent 367a93d commit 88328f7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/fixtures/metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ module.exports.string = jsyaml.safeDump({
_posts: [
'date: CURRENT_DATETIME'
]
}
}
},
proseProp: true
},
configProp: true
});

module.exports.forms = jsyaml.safeDump({
Expand Down
11 changes: 11 additions & 0 deletions test/spec/collections/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,15 @@ describe('files collection', function() {
});
});

it('Extends config object with config.prose settings', function(done) {
var files = fileCollectionMocker();
files.parseConfig(fileMocker(stringMeta), {
success: function() {
expect(files.config.proseProp).to.eql(true);
expect(files.config.configProp).to.eql(true);
done();
}
});
});

});

0 comments on commit 88328f7

Please sign in to comment.