Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

brofist

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

brofist

Minimal BDD test runner that plays along nicely with Browserify.

  • 0.3.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-80%
Maintainers
1
Weekly downloads
 
Created
Source

Brofist Build Status Dependencies Status

Minimal BDD test runner that plays along nicely with Browserify.

Example

var spec   = require('brofist')()
var assert = require('assert')

spec('λ compose', function(it) {
  it('compose(f, g)(x) should be the same as f(g(x))', function() {
    assert.strictEqual(f(g(x)), compose(f, g)(x))
  })
})

spec.run(require('brofist-minimal')())

Then:

$ node run test.js
Success. 1/1 tests.

Installing

Just grab it from NPM:

$ npm install brofist

Documentation

A quick reference of the API can be built using Calliope:

$ npm install -g calliope
$ calliope build

A lengthy, narrated documentation is available On the wiki

Tests

On Node:

$ npm test

On the browser:

$ npm install -g brofist-browser
$ brofist-browser serve test/specs/index.js
# Then open the link on any browser

Platform support

This library assumes an ES5 environment, but can be easily supported in ES3 platforms by the use of shims. Just include es5-shim :3

browser support

Licence

MIT/X11. ie.: do whatever you want.

FAQs

Package last updated on 13 Jun 2013

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc