1.0.0 • Published 6 years ago

expectations v1.0.0

Weekly downloads
183
License
0BSD
Repository
github
Last release
6 years ago

Build Status

Jasmine-style expectations for node.js & the browser

This is a standalone package that supplies jasmine style expect(foo).toEqual(bar);-style expectations.

Designed for use in mocha, but suitable for use in any test framework.

Installation

  • NodeJS: npm install expectations
  • Browser: Download manually, or bower install expectations

Usage

NodeJS:

require('expectations');	// exports a global, so use anywhere

From Mocha (on commandline or add to test/mocha.opts):

--require expectations

In browser:

<script src="expectations.js"></script>

API

We aim to support the majority of the jasmine expect API, but there are likely things missing. Pull Requests (with tests!) graciously accepted.

1.0.0

6 years ago

0.7.1

8 years ago

0.7.0

8 years ago

0.6.0

9 years ago

0.5.2

9 years ago

0.5.1

10 years ago

0.5.0

10 years ago

0.4.2

10 years ago

0.4.1

10 years ago

0.4.0

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.5

11 years ago

0.2.2

11 years ago

0.2.0

12 years ago

0.1.6

12 years ago