You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

componium-test

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

componium-test

Componium Test - JavaScript testing framework

1.0.4
latest
npmnpm
Version published
Maintainers
1
Created
Source

ct // Componium Test - JavaScript testing framework

ct (componium-test) is a simple JavaScript testing full-stack framework

Features

  • Runs tests in node.js and in the browser.
  • Powered by Chai.js assertions.
  • Mocking powered by the Sinon.js library.

Public API

Here's an example of available APIs for this framework:

// include the framework
import ct, { assert } from "componium-test";

// create test suites
ct({
  // set the title
  describe: "Unit test suite two",
    
  // before functions  
  before: () => {
    console.log("called before");
  },
  beforeEach: () => {
    console.log("called beforeEach");
  },
  "your test": async function () {
    // add logic relevant to your components here  
    assert.equal(2, 2, "2 is 2");
  },
  
  // after methods  
  afterEach: () => {
    console.log("called afterEach");
  },
  after: () => {
    console.log("called after");
  },
});

Release History

See the CHANGELOG.

License

MIT

FAQs

Package last updated on 02 Nov 2023

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.