Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 474 Bytes

README.md

File metadata and controls

28 lines (18 loc) · 474 Bytes

Node JS Unit Test - Hello World

This is a simple example of performing unit tests with Node.js

There are two files:

  1. server.js: A very simple node JS server
  2. spec.js: Simple unit test

How to Test

Step 1. Move to the source code directory
$ cd ose-dev3-helloworld-nodejs
Step 2. Add the node dependencies
$ npm install
Step 3. Run the unit tests. This will execute unit test code in spec.js
$ npm test