{"action":"opened","issue":{"url":"https://api.github.com/repos/ryanfitz/hapi-auth-jwt/issues/33","labels_url":"https://api.github.com/repos/ryanfitz/hapi-auth-jwt/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/ryanfitz/hapi-auth-jwt/issues/33/comments","events_url":"https://api.github.com/repos/ryanfitz/hapi-auth-jwt/issues/33/events","html_url":"https://github.com/ryanfitz/hapi-auth-jwt/issues/33","id":87862450,"number":33,"title":"Unit testing query","user":{"login":"skota","id":1299082,"avatar_url":"https://avatars.githubusercontent.com/u/1299082?v=3","gravatar_id":"","url":"https://api.github.com/users/skota","html_url":"https://github.com/skota","followers_url":"https://api.github.com/users/skota/followers","following_url":"https://api.github.com/users/skota/following{/other_user}","gists_url":"https://api.github.com/users/skota/gists{/gist_id}","starred_url":"https://api.github.com/users/skota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skota/subscriptions","organizations_url":"https://api.github.com/users/skota/orgs","repos_url":"https://api.github.com/users/skota/repos","events_url":"https://api.github.com/users/skota/events{/privacy}","received_events_url":"https://api.github.com/users/skota/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-12T21:49:36Z","updated_at":"2015-06-12T21:49:36Z","closed_at":null,"body":"I am trying to write my own unit tests modeled after the tests in the package...\r\n\r\nmy test script lives in a structure like this//\r\napp_root\r\n---- node_modules\r\n---- server /\r\n---  test/server/api/users.js   ( this is my test script)\r\n\r\nwhen i run npm test...i get the following error...\"Cannot read property 'register' of undefined\"...\r\n\r\nInside the test script in modules i see this line 'server.register(require('../'), function (err) {'\r\n\r\nwhat should i change it to in my script so that it runs??  sorry this is more of a 'how do in..hapi js' query than a question specific to hapi-auth-jwt..\r\n\r\nany pointers appreciated...\r\n"}}