Skip to content

Commit

Permalink
fixed the plugin test
Browse files Browse the repository at this point in the history
  • Loading branch information
mavdi committed Jan 31, 2016
1 parent 0d03c2d commit 2308bf2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/plugin.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const Joi = require('joi')
const utils = require('./utils');
const Hapi = require('hapi');
const url = require('url');
const version = require('../package').version

let server, buildServer, destroyServer;

Expand All @@ -26,7 +27,7 @@ describe('Plugin Basics', function() {
})

it('Attaches the plugin to Hapi server configuration', function() {
expect(server.plugins['hapi-harvester'].version).to.equal('0.1.0')
expect(server.plugins['hapi-harvester'].version).to.equal(version)
})

it('should have the injectThen method available', function() {
Expand Down

0 comments on commit 2308bf2

Please sign in to comment.