{"action":"created","issue":{"url":"https://api.github.com/repos/meteor/meteor/issues/2580","labels_url":"https://api.github.com/repos/meteor/meteor/issues/2580/labels{/name}","comments_url":"https://api.github.com/repos/meteor/meteor/issues/2580/comments","events_url":"https://api.github.com/repos/meteor/meteor/issues/2580/events","html_url":"https://github.com/meteor/meteor/issues/2580","id":42686821,"number":2580,"title":"Inconsistent URL of client-side assets added from onTest","user":{"login":"mitar","id":585279,"avatar_url":"https://avatars.githubusercontent.com/u/585279?v=3","gravatar_id":"","url":"https://api.github.com/users/mitar","html_url":"https://github.com/mitar","followers_url":"https://api.github.com/users/mitar/followers","following_url":"https://api.github.com/users/mitar/following{/other_user}","gists_url":"https://api.github.com/users/mitar/gists{/gist_id}","starred_url":"https://api.github.com/users/mitar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitar/subscriptions","organizations_url":"https://api.github.com/users/mitar/orgs","repos_url":"https://api.github.com/users/mitar/repos","events_url":"https://api.github.com/users/mitar/events{/privacy}","received_events_url":"https://api.github.com/users/mitar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/meteor/meteor/labels/Project:Isobuild","name":"Project:Isobuild","color":"f7c6c7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2014-09-13T04:31:29Z","updated_at":"2015-04-03T08:09:50Z","closed_at":"2015-02-25T00:07:16Z","body":"In [our package](https://github.com/peerlibrary/meteor-crypto) I add for testing a static asset:\r\n\r\n```\r\n  api.add_files([\r\n    'assets/test.pdf'\r\n  ], ['client', 'server'], {isAsset: true});\r\n```\r\n\r\nThe issue is that when testing with:\r\n\r\n```\r\nmeteor test-packages ./\r\n```\r\n\r\nthe location of this asset becomes `/packages/local-test:peerlibrary:crypto/assets/test.pdf`, but otherwise is `/packages/peerlibrary:crypto/assets/test.pdf`. This is bad because tests then fail as it is not expected `/packages/peerlibrary:crypto/assets/test.pdf`."},"comment":{"url":"https://api.github.com/repos/meteor/meteor/issues/comments/89212877","html_url":"https://github.com/meteor/meteor/issues/2580#issuecomment-89212877","issue_url":"https://api.github.com/repos/meteor/meteor/issues/2580","id":89212877,"user":{"login":"D1no","id":2397125,"avatar_url":"https://avatars.githubusercontent.com/u/2397125?v=3","gravatar_id":"","url":"https://api.github.com/users/D1no","html_url":"https://github.com/D1no","followers_url":"https://api.github.com/users/D1no/followers","following_url":"https://api.github.com/users/D1no/following{/other_user}","gists_url":"https://api.github.com/users/D1no/gists{/gist_id}","starred_url":"https://api.github.com/users/D1no/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/D1no/subscriptions","organizations_url":"https://api.github.com/users/D1no/orgs","repos_url":"https://api.github.com/users/D1no/repos","events_url":"https://api.github.com/users/D1no/events{/privacy}","received_events_url":"https://api.github.com/users/D1no/received_events","type":"User","site_admin":false},"created_at":"2015-04-03T08:09:50Z","updated_at":"2015-04-03T08:09:50Z","body":"I am stuck on this issue: finding the **correct URL to a static file during testing**. Without sparking a new discussion here, I created a [stackoverflow question](http://stackoverflow.com/questions/29428484/url-to-package-assets-ontest-for-scrape-testing) to clarify the outcome who minds to reply."}}