Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/reasonml-community/bs-mocha
https://github.com/reasonml-community/bs-mocha
bucklescript mocha reason
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/reasonml-community/bs-mocha
- Owner: reasonml-community
- License: mit
- Created: 2018-01-22T20:38:58.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-05-08T18:33:49.000Z (over 3 years ago)
- Last Synced: 2024-10-11T22:49:29.228Z (about 1 month ago)
- Topics: bucklescript, mocha, reason
- Language: OCaml
- Size: 59.6 KB
- Stars: 8
- Watchers: 10
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bs-mocha
Bucklescript bindings for mocha
## Install
```
npm install bs-mocha --save-dev
```## Usage
```reason
open BsMocha;
let (it', it_skip') = Async.(it, it_skip);
open Mocha;describe("Some Test Suite", () => {
describe("List.map", () => {
it("should map the values", () =>
Assert.deep_equal(List.map(( * )(2), [1, 2, 3]), [2, 4, 6])
);it("should work with an empty list", () =>
Assert.equal(List.map(( * )(2), []), [])
);
})
});
```## License
See `LICENSE`