Adding mocks file.

This commit is contained in:
David Jay
2016-11-29 17:36:17 -05:00
parent dafd849b0e
commit fb977da01d
2 changed files with 21 additions and 1 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
node_modules/selenium-standalone/bin/selenium-standalone install
source .env-test
echo $TALK_MONGO_URL
node tests/e2e/mocks &
npm start &
+20
View File
@@ -0,0 +1,20 @@
const Comments = require('../../models/comment')
const Users = require('../../models/user')
const Actions = require('../../models/action')
const mockComments = [
{
body: 'Pangolin pups are called pangopups.',
author_id: '123',
id: 'abc'
},
{
body: 'Baby whales grow at up to 8lbs an hour.',
author_id: '456',
id: 'def'
}
];
console.log('Loading mocks.');
Comments.create(mockComments);