First commit

This commit is contained in:
Typicode
2013-11-30 14:42:14 +01:00
commit b8915e7bb8
18 changed files with 1091 additions and 0 deletions

18
test/fixture.js Normal file
View File

@ -0,0 +1,18 @@
// Small database to be used during tests
module.exports = function() {
var db = {};
db.posts = [
{id: 1, body: 'foo'},
{id: 2, body: 'bar'}
]
db.comments = [
{id: 1, published: true, postId: 1},
{id: 2, published: false, postId: 1},
{id: 3, published: false, postId: 2},
{id: 4, published: false, postId: 2},
]
return db;
}