Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

docworks-repo

Package Overview
Dependencies
Maintainers
2
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docworks-repo - npm Package Compare versions

Comparing version 1.8.5 to 1.9.0

tmp/aNamespace/ServiceDocs.service.json

5

package.json
{
"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)
})
})
})
})
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc