Skip to content

feedback - #1

Open
ersel wants to merge 2 commits into
tbilbe:masterfrom
CommandShiftHQ:master
Open

feedback#1
ersel wants to merge 2 commits into
tbilbe:masterfrom
CommandShiftHQ:master

Conversation

@ersel

@ersel ersel commented Mar 2, 2019

Copy link
Copy Markdown

1 - Your indentation is quite random. Install eslint so you've consistency across your codebase. Follow the readme here: https://github.com/MCRcodes/eslint-config

2 - You've magic numbers in your application code. Use module level constants to standardize and annotate these. See Russell's PR: https://github.com/ruzla/virtual-pet/blob/master/src/pet.js

const MAX_FITNESS = 8;
const MIN_FITNESS = 0;

3 - Don't commit skipped tests as part of your final work. Tests are only valuable if we actually run them.

4 - Good work on individual test setups. Elegant use of scope and beforeEach blocks 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant