Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/mchirico/refactor

Code based on Martin Fowler's book, "Refactoring"
https://github.com/mchirico/refactor

chai javascript mocha npm

Last synced: about 1 month ago
JSON representation

Code based on Martin Fowler's book, "Refactoring"

Awesome Lists containing this project

README

        

![CI](https://github.com/mchirico/refactor/workflows/CI/badge.svg)
[![Build Status](https://travis-ci.org/mchirico/refactor.svg?branch=master)](https://travis-ci.org/mchirico/refactor)

# refactor
martin

First start the server, so that all tests pass

```bash
node app/server.js
# or
npm restart
```

Next, run the tests:

```bash

npm test

> [email protected] test /Users/mchirico/refactor
> mocha --reporter spec

Testing Billing
Chapter 1 program
Statement for BigCo
Hamlet: $650.00 (55 seats)
As You Like It: $580.00 (35 seats)
Othello: $500.00 (40 seats)
Amount owed is $1,730.00
You earned 47 credits

✓ calculates the bill

Color Code Converter
RGB to Hex conversion
✓ converts the basic colors
Hex to RGB conversion
✓ converts the basic colors

Color Code Converter API
RGB to Hex conversion
✓ returns status 200
✓ returns the color in hex
Hex to RGB conversion
✓ returns status 200
✓ returns the color in RGB

7 passing (61ms)

```

drawing