gotdibbs/grunt-html-inspector — pull request #3 by markosm (2014-06-18 12:21:58+00:00)
Title: task notifies grunt on success using handle returned by grunt.async()

When an asyncronous grunt task ends successfully, it must call the done() callback returned by
grunt.async() with no arguments to notify grunt of its success. This was not done before,
creating issues when grunt-html-inspector would be combined with other grunt tasks in
a composite task. Namely, the tasks following grunt-html-inspector would not run, as
grunt would assumme that grunt-html-inspector failed as the done() callback was never
executed.

Now, this is performed by using the relevant functionality of the async.forEachSeries method.
A unit test has been added that confirms this functionality. In order for the unit test to
function, the function returning a grunt task mock was refactored, to better handle the
`this` reference.