Skip to content

Commit 643de9e

Browse files
committed
fix(tests): add missing slug property to initial fixture data
1 parent 2c49a05 commit 643de9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/models/__tests__/post.spec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { connectDB, dropDB } from '../../util/test-helpers';
66

77
// Initial posts added into test db
88
const posts = [
9-
new Post({ name: 'Prashant', title: 'Hello Mern', cuid: 'f34gb2bh24b24b2', content: "All cats meow 'mern!'" }),
10-
new Post({ name: 'Mayank', title: 'Hi Mern', cuid: 'f34gb2bh24b24b3', content: "All dogs bark 'mern!'" }),
9+
new Post({ name: 'Prashant', title: 'Hello Mern', slug: 'hello-mern', cuid: 'f34gb2bh24b24b2', content: "All cats meow 'mern!'" }),
10+
new Post({ name: 'Mayank', title: 'Hi Mern', slug: 'hi-mern', cuid: 'f34gb2bh24b24b3', content: "All dogs bark 'mern!'" }),
1111
];
1212

1313
test.beforeEach('connect and add two post entries', t => {

0 commit comments

Comments
 (0)