{"action":"created","issue":{"url":"https://api.github.com/repos/ga-wdi-boston/express-group-project/issues/8","labels_url":"https://api.github.com/repos/ga-wdi-boston/express-group-project/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/ga-wdi-boston/express-group-project/issues/8/comments","events_url":"https://api.github.com/repos/ga-wdi-boston/express-group-project/issues/8/events","html_url":"https://github.com/ga-wdi-boston/express-group-project/issues/8","id":119530988,"number":8,"title":"mongoose modules test","user":{"login":"gracenjambi","id":8346553,"avatar_url":"https://avatars.githubusercontent.com/u/8346553?v=3","gravatar_id":"","url":"https://api.github.com/users/gracenjambi","html_url":"https://github.com/gracenjambi","followers_url":"https://api.github.com/users/gracenjambi/followers","following_url":"https://api.github.com/users/gracenjambi/following{/other_user}","gists_url":"https://api.github.com/users/gracenjambi/gists{/gist_id}","starred_url":"https://api.github.com/users/gracenjambi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gracenjambi/subscriptions","organizations_url":"https://api.github.com/users/gracenjambi/orgs","repos_url":"https://api.github.com/users/gracenjambi/repos","events_url":"https://api.github.com/users/gracenjambi/events{/privacy}","received_events_url":"https://api.github.com/users/gracenjambi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-30T16:43:24Z","updated_at":"2015-11-30T16:48:54Z","closed_at":null,"body":"We have written our first test file, and when testing our modules we persistently get the error below:\r\n\r\n\"ReferenceError: require is not defined at test/create_user.js:1:16 Error: error loading js file: test/create_user.js\"\r\n\r\nOur script: \r\nvar mongoose = require(\"mongoose\");\r\nvar User = require(\"../models/index\")\r\n\r\nUser.create(\r\n  {\r\n    userName: 'Henry',\r\n    passwordDigest: \"Rollins\"\r\n  });\r\n"},"comment":{"url":"https://api.github.com/repos/ga-wdi-boston/express-group-project/issues/comments/160686367","html_url":"https://github.com/ga-wdi-boston/express-group-project/issues/8#issuecomment-160686367","issue_url":"https://api.github.com/repos/ga-wdi-boston/express-group-project/issues/8","id":160686367,"user":{"login":"gracenjambi","id":8346553,"avatar_url":"https://avatars.githubusercontent.com/u/8346553?v=3","gravatar_id":"","url":"https://api.github.com/users/gracenjambi","html_url":"https://github.com/gracenjambi","followers_url":"https://api.github.com/users/gracenjambi/followers","following_url":"https://api.github.com/users/gracenjambi/following{/other_user}","gists_url":"https://api.github.com/users/gracenjambi/gists{/gist_id}","starred_url":"https://api.github.com/users/gracenjambi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gracenjambi/subscriptions","organizations_url":"https://api.github.com/users/gracenjambi/orgs","repos_url":"https://api.github.com/users/gracenjambi/repos","events_url":"https://api.github.com/users/gracenjambi/events{/privacy}","received_events_url":"https://api.github.com/users/gracenjambi/received_events","type":"User","site_admin":false},"created_at":"2015-11-30T16:48:54Z","updated_at":"2015-11-30T16:48:54Z","body":"Do we have to use Node?"}}