Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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"
- Host: GitHub
- URL: https://github.com/mchirico/refactor
- Owner: mchirico
- Created: 2019-03-02T21:26:26.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T03:33:41.000Z (almost 2 years ago)
- Last Synced: 2024-04-21T02:18:36.094Z (9 months ago)
- Topics: chai, javascript, mocha, npm
- Language: TypeScript
- Homepage:
- Size: 370 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
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
martinFirst 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 specTesting 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 colorsColor 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 RGB7 passing (61ms)
```