New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

clement

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

clement

Write tests that are friendly to newer programmers

latest
Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Clement

Write tests that are friendly to newer programmers.

Goals

  • Easy(ish) to read. Terse test code.
  • Inlined into main application code, not put in separate files.
  • Errors include only the most useful information.
  • Terse. Test can be written on one line. Test description and test code are the same thing.

Usage

const test = require("clement");

test(_ => _("Expect", returnTrue(), "to equal", true));
// Prints:
// ✅ "Expect", returnTrue(), "to equal", true

test(_ => _("Expect", throws(), "to equal", true));
// Prints:
// ❌ "Expect", throws(), "to equal", true
//    but get error `Boom`
//    on line 17

function returnTrue() {
  return true;
};

function throws() {
  throw new Error("Boom");
};

Install

$ npm install clement

FAQs

Package last updated on 31 May 2018

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