old_contents: /* global afterEach, beforeEach, describe, it */
  
  import assert from 'assert'
  import fs from 'fs'
  import rimraf from 'rimraf'
  import build from '../../src/build'
  import hooks from '../../src/hooks'
  
  describe('build', () => {
    const output = './test/integration/output'
  
    beforeEach(done => {
      fs.mkdirSync(output)
      build(output)
  
      done()
    })
  
    afterEach(done => {
      rimraf(output, err => {
        if (err) throw new Error(err)
  
        done()
      })
    })
  
    it('successfully creates the hook scripts', done => {
      const files = fs.readdirSync(output)
  
      assert.strictEqual(hooks.length, files.length)
  
      done()
    })
  })
  
new_contents: /* global afterEach, beforeEach, describe, it */
  
  import assert from 'assert'
  import fs from 'fs'
  import rimraf from 'rimraf'
  import build from '../../src/build'
  import hooks from '../../src/hooks'
  
  describe('build', () => {
    const output = './test/integration/output'
  
    beforeEach(done => {
      fs.mkdirSync(output)
      build(output)
  
      done()
    })
  
    afterEach(done => {
      rimraf(output, err => {
        if (err) throw new Error(err)
  
        done()
      })
    })
  
    it('successfully creates the hook scripts', done => {
      const files = fs.readdirSync(output)
  
      assert.strictEqual(hooks.length, files.length)
  
      files.forEach(hook => {
        fs.readFile(hook, (err, data) => {
          if (err) throw new Error(err)
  
          assert(data.match('#!/usr/bin/env node'))
          assert(data.match("var Runner = require('hook-script-runner')"))
          assert(data.match("new Runner('${hook}').run()"))
        })
      })
  
      done()
    })
  })
  
subject: Add additional coverage for hook script contents