Socket
Socket
Sign inDemoInstall

test-utils-lib

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

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.


Version published
Maintainers
1
Install size
3.62 kB
Created

Readme

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

Last updated on 31 Dec 2021

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc