Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/takamin/minty-mocha

Cheaper alternative of mocha to get colored result on mintty
https://github.com/takamin/minty-mocha

Last synced: about 1 month ago
JSON representation

Cheaper alternative of mocha to get colored result on mintty

Awesome Lists containing this project

README

        

minty-mocha
===========

This is a cheaper alternative module of mocha to get colored test results on mintty (or a git bash for Windows).
On the mintty, the `mocha` does work, but the text is not colored.

If `describe` and `it` functions are not exist in global,
this module creates alternatives.
If both of those are exist, this module do nothing.
So anyhow, this module does not export anything

This module might not work well on the other environment.

USAGE
-----

Simply, only require.

```
(function() {
"use strict";
require("minty-mocha");
var chai = require('chai');
var should = chai.should();
var assert = chai.assert;

describe("foo in bar", function() {
describe("baz will boo", function() {
it('should returns zero', function() {
assert.equal(bar.foo.baz.boo(), 0);
});
});
describe("there is no boo", function() {
it('should ...
```

LICENSE
-------

[MIT](LICENSE)