Skip to content

Commit ac56d92

Browse files
committed
Adding tests and fixtures
1 parent 8c4f991 commit ac56d92

File tree

2 files changed

+528
-32
lines changed

2 files changed

+528
-32
lines changed

test/fixtures.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
module.exports = {
2+
singlePost: {
3+
title: 'First Post',
4+
author: 'Alice'
5+
},
6+
multiplePosts: [
7+
{
8+
title: 'Second Post',
9+
author: 'Bob'
10+
},
11+
{
12+
title: 'Third and Final Post',
13+
author: 'Doug'
14+
}
15+
],
16+
invalidPost: [
17+
{
18+
title: 'Invalid Post'
19+
}
20+
],
21+
comments: [
22+
{
23+
content: 'First comment',
24+
commenter: 'Anonymous'
25+
}
26+
]
27+
};

0 commit comments

Comments
 (0)