Skip to content

Commit

Permalink
Fix docpress-base based test
Browse files Browse the repository at this point in the history
  • Loading branch information
rstacruz committed Oct 19, 2015
1 parent 4251ac6 commit 66d4815
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/index/with_base_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ describe('index/with_base:', function () {
before(function (done) {
// Mock metalsmith object
var ms = {
_meta: { docs: 'docs' },
directory () { return __dirname },
metadata () { return { docs: 'docs' } }
metadata () { return this._meta }
}

this.files = {
Expand Down Expand Up @@ -45,7 +46,7 @@ describe('index/with_base:', function () {
expect(this.files['assets/search.js']).toExist()
})

xit('includes search.js', function () {
it('includes search.js', function () {
var contents = this.files['index.html'].contents
expect(contents).toMatch(/assets\/search.js\?t=[a-f0-9]{8}/)
})
Expand Down

0 comments on commit 66d4815

Please sign in to comment.