     beforeEach ->
         system = yaml.safeLoad("""
             testimonial: 
-                a.js: // empty
-                b.js: /// empty
+                a.js: "//empty"
+                b.js: "///empty"
                 spa.yaml: |
                     root: "/testimonial/"
                     index: index.html
+                    hash_func: md5
                     appcache: main.appcache
                     cached:
                         - a.js

expect = require("chai").expect
spa = require("../lib")
utils = require("./utils")

beforeEach ->
    @old_cwd = process.cwd()


        expect(fs.existsSync("/testimonial/main.appcache")).to.be.true
        expect(fs.readFileSync("/testimonial/main.appcache", "utf8"))
            .to.include.string(crypto.createHash('md5').update("//empty").digest("hex"))
            .to.include.string('http://127.0.0.1:8010/a.js')
            .to.include.string(crypto.createHash('md5').update("///empty").digest("hex"))
            .to.include.string('http://127.0.0.1:8010/b.js')
            .to.include.string('http://127.0.0.1:8010/index.html')

describe 'Building renamed manifest', ->
