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

debugutil

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

debugutil - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

3

package.json
{
"name": "debugutil",
"version": "1.4.0",
"version": "1.4.1",
"description": "Debug Utility Tool with Logging",

@@ -28,4 +28,5 @@ "main": "src/debug.js",

"eslint-plugin-react": "^6.9.0",
"istanbul": "^0.4.5",
"mocha": "^3.2.0"
}
}

@@ -42,2 +42,6 @@ ## debugutil

I have also included Unit Testing for this package. Unit Testing is provided using [chai](https://www.npmjs.com/package/chai), [supertest]https://www.npmjs.com/package/supertest() and [mocha](https://www.npmjs.com/package/mocha).
To run Unit Test, run the following command in your CLI:
```javascript
mocha
```

@@ -44,0 +48,0 @@ ## Code Coverage

// Debug Utility Tool with Logging by Melony Smith
/* eslint-env mocha */
const request = require('supertest');

@@ -9,5 +8,21 @@ const expect = require('chai');

describe('Debug', () => {
it('Debug OK', () => {
});
});
describe ('debugutil', () => {
const logArray = [
{
testName: 'should log error',
functionName: debug.debugSuccess,
functionType: 'debug.debugSuccess',
},
{
testName: 'should log success',
functionName: debug.debugError,
functionType: 'debug.debugError',
},
]
for (let i = 0; i < logArray.length; i++) {
it (logArray[i].testName, (done) => {
logArray[i].functionName('This is a '+ logArray[i].functionType + ' test')
done()
})
}
})

Sorry, the diff of this file is not supported yet

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