docworks-repo
Advanced tools
Comparing version 1.8.5 to 1.9.0
{ | ||
"name": "docworks-repo", | ||
"version": "1.8.5", | ||
"version": "1.9.0", | ||
"description": "manage service files in a git repo", | ||
@@ -34,4 +34,3 @@ "main": "lib/index.js", | ||
"mocha": "^3.3.0" | ||
}, | ||
"gitHead": "2478c1e94b0acf24ef97bf740f67497a598cb6c3" | ||
} | ||
} |
@@ -67,2 +67,24 @@ import chai from 'chai' | ||
}) | ||
describe('saved JSON structure', () => { | ||
describe('Service Schema', () => { | ||
it('should verify the existence of the "description" property as a String array', async function() { | ||
let jsDocRes = runJsDoc({ | ||
'include': [ | ||
'test/sources/service-docs.js' | ||
], | ||
'includePattern': '.+\\.(js)?$', | ||
}) | ||
const files = await saveToDir('tmp', jsDocRes.services) | ||
expect(file('tmp/aNamespace/ServiceDocs.service.json')).to.exist | ||
expect(files).to.have.lengthOf(1) | ||
const serviceJSONFile = fs.readJsonSync(`./tmp/${files[0]}`) | ||
const failureMsg = 'description property according to Service schema needs to be an Array' | ||
expect(Array.isArray(serviceJSONFile.docs.description), failureMsg).to.equal(true) | ||
}) | ||
}) | ||
}) | ||
}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
145785
44
3865