ceylon
TypeScript icon, indicating that this package has built-in type declarations

0.9.1 • Public • Published

Ceylon Travis npm package

Ceylon

Ceylon is an assertion library for unit testing written in TypeScript. It can be used in TypeScript or in plain old JavaScript.

It is based upon the API for expect, with the added bonus of full TypeScript definitions, meaning there's no need to go looking for a d.ts file.

Ceylon aims to simplify unit testing in TypeScript by making it easy to write assertions.

Example Usage

import expect from 'ceylon';
 
expect(100)
    .toExist()
    .toBeA('number')
    .toBeLessThan(200)
    .toBeGreaterThan(5)
    .toNotBe(90);

For a complete reference visit the Ceylon Wiki.

/ceylon/

    Package Sidebar

    Install

    npm i ceylon

    Weekly Downloads

    57

    Version

    0.9.1

    License

    MIT

    Last publish

    Collaborators

    • dylanparry