expectations
jasmine-style 'expect' calls for mocha and other test frameworks
Last updated a year ago by spmason .
0BSD · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install expectations 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 1.0.0                                ...           latest (a year ago)

16 Versions

  • 1.0.0                                ...           a year ago
  • 0.7.1                                ...           4 years ago
  • 0.7.0                                ...           4 years ago
  • 0.6.0                                ...           4 years ago
  • 0.5.2                                ...           5 years ago
  • 0.5.1                                ...           5 years ago
  • 0.5.0                                ...           5 years ago
  • 0.4.2                                ...           5 years ago
  • 0.4.1                                ...           5 years ago
  • 0.4.0                                ...           5 years ago
  • 0.3.1                                ...           5 years ago
  • 0.3.0                                ...           6 years ago
  • 0.2.5                                ...           7 years ago
  • 0.2.2                                ...           7 years ago
  • 0.2.0                                ...           7 years ago
  • 0.1.6                                ...           8 years ago
Maintainers (1)
Downloads
Today 1
This Week 1
This Month 2
Last Day 0
Last Week 19
Last Month 69
Dependencies (0)
None
Dev Dependencies (3)

Copyright 2014 - 2017 © taobao.org |