New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

test-utils-lib

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

test-utils-lib

This is a small library with a small set of functions for making quick tests in your code.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-83.33%
Maintainers
1
Weekly downloads
 
Created
Source

TEST UTILS

This is a small library with a small set of functions for making quick tests in your code.

Unlike test frameworks like jest, this library's methods can be called from within your existing development code. This means that you don't have to create separate test files. You can put your tests right next to the code being tested.

Below is an example of usage:

test.test(function personTest() {
    const p = new Person({ firstName: 'Mark', lastName: 'Jane' });
    test.testEqual(p.lastName, 'Jane');
    p.lastName = 'Tim'
    test.testNotEqual(p.lastName, 'Tim');
    test.testEqual(p.lastName, 'Jane');
});
test.summarize();

The library prides itself for being very small with no use of third party libraries and being very easy to understand and modify.

FAQs

Package last updated on 31 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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