GithubHelp home page GithubHelp logo

dmtopp / mochachaiandbcrypt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from code-for-coffee/mochachaiandbcrypt

0.0 2.0 0.0 4.6 MB

Testing BCrypt with Mocha + Chai [bdd, testing, mocha, chai, security, bcrypt, node]

Home Page: https://travis-ci.org/code-for-coffee/mochaChaiAndBcrypt/

JavaScript 100.00%

mochachaiandbcrypt's Introduction

Mocha, Chai, & BCrypt

Testing BCrypt on Node.js with Mocha + Chai.

Build Status (This build status shows the statuses of the test command specified in package.json's script.tests using a service like https://travis-ci.org)

giphy.gif

Getting Started

  • Clone this repository.
  • npm install to acquire the modules required for this project.
  • Run mocha. Watch the tests work.

What's going on with this BDD stuff?

  1. Behavior driven development starts off with us placing tests are placed inside of a test/ folder.
  2. Functionality is then then described with a series of tests.
  3. Each test (it) then can expect or describe what a value should be.

Challenge

  1. Read Chai's BDD Docs: http://chaijs.com/api/bdd/
  2. Inspect test/test.js
  3. Modify each test to make them fail.
  4. Correct them to make them pass again!
  5. After inspecting the initial tests inside of the test/test.js folder and getting them to work, uncomment out the starter code at the end of the file and re-test BCrypt by hand.

mochachaiandbcrypt's People

Contributors

code-for-coffee avatar

Watchers

James Cloos avatar Daniel avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.