{"action":"created","issue":{"url":"https://api.github.com/repos/floatdrop/stream-assert/issues/4","labels_url":"https://api.github.com/repos/floatdrop/stream-assert/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/floatdrop/stream-assert/issues/4/comments","events_url":"https://api.github.com/repos/floatdrop/stream-assert/issues/4/events","html_url":"https://github.com/floatdrop/stream-assert/issues/4","id":126136752,"number":4,"title":"assert.any","user":{"login":"raftheunis87","id":3533046,"avatar_url":"https://avatars.githubusercontent.com/u/3533046?v=3","gravatar_id":"","url":"https://api.github.com/users/raftheunis87","html_url":"https://github.com/raftheunis87","followers_url":"https://api.github.com/users/raftheunis87/followers","following_url":"https://api.github.com/users/raftheunis87/following{/other_user}","gists_url":"https://api.github.com/users/raftheunis87/gists{/gist_id}","starred_url":"https://api.github.com/users/raftheunis87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raftheunis87/subscriptions","organizations_url":"https://api.github.com/users/raftheunis87/orgs","repos_url":"https://api.github.com/users/raftheunis87/repos","events_url":"https://api.github.com/users/raftheunis87/events{/privacy}","received_events_url":"https://api.github.com/users/raftheunis87/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-12T09:43:06Z","updated_at":"2016-01-12T10:25:34Z","closed_at":null,"body":"Hey,\r\n\r\nFirst of all, thanks for this library! It really makes testing streams a joy :-).\r\n\r\nI got a problem with the any assertion. Maybe I'm using the wrong syntax. What I try to do is the following:\r\n\r\n```js\r\nthis.source = vinylFs.src(['test/specs/streams/**'], {nodir: true});\r\nit('should test if the files are in the stream', function (done) {\r\n    this.source\r\n      .pipe(assert.any(function (file) {\r\n        expect(file.path).toContain('include_me.css');\r\n      }))\r\n      .on('assertion', function (err) {\r\n        done.fail(err);\r\n      })\r\n      .pipe(pi.devnull(function () {\r\n        done();\r\n      }));\r\n  });\r\n```\r\n\r\nThe problem is that it is checking all the files in the stream against the 'include_me.css'. I get the following output:\r\n\r\n```\r\nA copy stream should test if the files are in the stream\r\n  - Expected '/test/specs/streams/copy/resources/src/shared/style/include_me_2.css' to contain 'include_me.css'.\r\n  - Expected 'test/specs/streams/copy/resources/src/authenticated/style/img/included.jpg' to contain 'include_me.css'.\r\n  - Expected 'test/specs/streams/copy/resources/src/shared/style/img/included.jpg' to contain 'include_me.css'.\r\n```\r\nThe 'include_me.css' is also in this filepath as well, but it is not logged as an error because it matches.\r\n\r\nWhat can I do to resolve this issue?\r\n\r\nKind regards,\r\n\r\nRaf\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/floatdrop/stream-assert/issues/comments/170866550","html_url":"https://github.com/floatdrop/stream-assert/issues/4#issuecomment-170866550","issue_url":"https://api.github.com/repos/floatdrop/stream-assert/issues/4","id":170866550,"user":{"login":"raftheunis87","id":3533046,"avatar_url":"https://avatars.githubusercontent.com/u/3533046?v=3","gravatar_id":"","url":"https://api.github.com/users/raftheunis87","html_url":"https://github.com/raftheunis87","followers_url":"https://api.github.com/users/raftheunis87/followers","following_url":"https://api.github.com/users/raftheunis87/following{/other_user}","gists_url":"https://api.github.com/users/raftheunis87/gists{/gist_id}","starred_url":"https://api.github.com/users/raftheunis87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raftheunis87/subscriptions","organizations_url":"https://api.github.com/users/raftheunis87/orgs","repos_url":"https://api.github.com/users/raftheunis87/repos","events_url":"https://api.github.com/users/raftheunis87/events{/privacy}","received_events_url":"https://api.github.com/users/raftheunis87/received_events","type":"User","site_admin":false},"created_at":"2016-01-12T10:25:34Z","updated_at":"2016-01-12T10:25:34Z","body":"@floatdrop Thanks for the quick reply.\r\n\r\nIt's not just the logging, the test is actually failing :-("}}