Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@casd/expect

casdijkman302GPL-3.0-only0.0.5TypeScript support: included

Simple javascript expect library, no frills

test, expect, simple

readme

expect

expect is a simple javascript expect library designed to be minimal but effective. This library enables you to write simple assertions with the following syntax:

import { describe, expect } from '@casd/expect';

describe('0 is a number').expect(0).to.be.a('number');         // => true
describe('0 is not an object').expect(0).not.to.be.an(Object); // => true