Comparing version 2.0.4 to 2.0.5
{ | ||
"name": "hapi-raml", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "Create HAPI bindings from RAML specs automatically", | ||
"main": "index.js", | ||
"scripts": { | ||
"preversion": "npm test", | ||
"version": "npm run build && git diff-index --quiet --cached HEAD || (git add lib/ && git commit -m 'Rebuild lib')", | ||
"preversion": "npm test && npm run build && git diff --exit-code --quiet", | ||
"postversion": "git push && git push --tags", | ||
@@ -10,0 +9,0 @@ "pretest": "./node_modules/.bin/eslint src/", |
@@ -90,2 +90,6 @@ /*eslint-env mocha */ | ||
it('should return a Promise', () => { | ||
expect(hapiRaml.hookup()).to.be.an.instanceOf(Promise); | ||
}); | ||
it('should reject if the RAML file is not parseable', () => { | ||
@@ -92,0 +96,0 @@ mockFS.restore(); |
@@ -84,2 +84,6 @@ /*eslint-env mocha */ | ||
it('should return a Promise', () => { | ||
expect(newRAML.loadRAMLFile()).to.be.an.instanceOf(Promise); | ||
}); | ||
it('should load the file content and pass it to the parser', () => { | ||
@@ -157,2 +161,6 @@ let loadStub = sinon.stub(mockParser, 'loadFile', () => { | ||
it('should return a Promise', () => { | ||
expect(newRAML.getRouteMap()).to.be.an.instanceOf(Promise); | ||
}); | ||
it('should eventually resolve with an Array', () => { | ||
@@ -159,0 +167,0 @@ return expect(newRAML.getRouteMap()).to.eventually.be.an('Array'); |
56941
1251