{"action":"opened","issue":{"url":"https://api.github.com/repos/filerjs/filer/issues/389","repository_url":"https://api.github.com/repos/filerjs/filer","labels_url":"https://api.github.com/repos/filerjs/filer/issues/389/labels{/name}","comments_url":"https://api.github.com/repos/filerjs/filer/issues/389/comments","events_url":"https://api.github.com/repos/filerjs/filer/issues/389/events","html_url":"https://github.com/filerjs/filer/issues/389","id":360994806,"node_id":"MDU6SXNzdWUzNjA5OTQ4MDY=","number":389,"title":"Add a test for truncate when length is undefined","user":{"login":"humphd","id":427398,"node_id":"MDQ6VXNlcjQyNzM5OA==","avatar_url":"https://avatars2.githubusercontent.com/u/427398?v=4","gravatar_id":"","url":"https://api.github.com/users/humphd","html_url":"https://github.com/humphd","followers_url":"https://api.github.com/users/humphd/followers","following_url":"https://api.github.com/users/humphd/following{/other_user}","gists_url":"https://api.github.com/users/humphd/gists{/gist_id}","starred_url":"https://api.github.com/users/humphd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/humphd/subscriptions","organizations_url":"https://api.github.com/users/humphd/orgs","repos_url":"https://api.github.com/users/humphd/repos","events_url":"https://api.github.com/users/humphd/events{/privacy}","received_events_url":"https://api.github.com/users/humphd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-17T18:45:18Z","updated_at":"2018-09-17T18:45:18Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I noticed that there isn't a test for the case that we do:\r\n\r\n```js\r\nfs.truncate('file', undefined, function(err) {...});\r\n```\r\n\r\nThe [docs for node.js](https://nodejs.org/api/fs.html#fs_fs_truncate_path_len_callback) say that this should assume `0`.\r\n\r\nI would like to work on this if that's OK."}}
{"actor":{"display_login":"humphd"}}