Skip to content
Permalink
Browse files

Add javascript unit test (#2)

  • Loading branch information...
marcomontalbano committed Feb 22, 2019
1 parent 0d29e0d commit 8da38400098d3607ec3a2ae4c7915d5c6a84a74a
Showing with 4,046 additions and 2,120 deletions.
  1. +5 −0 .babelrc
  2. +7 −0 README.md
  3. +4,017 −2,117 package-lock.json
  4. +7 −2 package.json
  5. +1 −1 src-js/libs/primes.js
  6. +9 −0 src-js/libs/primes.test.js
@@ -0,0 +1,5 @@
{
"presets": [
"@babel/preset-env"
]
}
@@ -125,6 +125,13 @@ $ npm start
Project is running at http://localhost:8080/


### Unit Test

You can run unit test for Rust and Javascript, simply running `npm test`.

I use `mocha` for javascript unit test, transpiling ES6 with `@babel/core`, `@babel/preset-env` and `@babel/register`.


## Benchmark

### Rust to Native Code
Oops, something went wrong.

0 comments on commit 8da3840

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.