Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Jestify 4-waterbottle and 11-choose-your-own-adventure#90

Merged
gregdyke merged 2 commits intoCodeYourFuture:mainfrom
gregdyke:jestify_js2wk1_b
Jul 24, 2021
Merged

Jestify 4-waterbottle and 11-choose-your-own-adventure#90
gregdyke merged 2 commits intoCodeYourFuture:mainfrom
gregdyke:jestify_js2wk1_b

Conversation

@gregdyke
Copy link
Copy Markdown
Contributor

@gregdyke gregdyke commented Jul 1, 2021

water bottle

  • replact chain of calls of the api with individual tests
  • reorganise tests so that pour/drink/isEmpty/isFull can be implemented independently (and cause some tests to turn green)

choose your own adventure

  • two run modes: npm test for jest, node for CLI game

See equivalent PR/discussion in solutions repo https://github.com/CodeYourFuture/JavaScript-Core-2-Coursework-Week1-Solution/pull/7

water bottle

  - replact chain of calls of the api with individual tests
  - reorganise tests so that pour/drink/isEmpty/isFull can be implemented independently (and cause some tests to turn green)

choose your own adventure

  - two run modes: npm test for jest, node for CLI game

See equivalent PR/discussion in solutions repo https://github.com/CodeYourFuture/JavaScript-Core-2-Coursework-Week1-Solution/pull/7
@gregdyke gregdyke requested a review from a team July 1, 2021 01:00
Copy link
Copy Markdown
Member

@illicitonion illicitonion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great - thanks!

south or west.

To start the game, run this file with Node as usual. To stop the game, press
To start the game, run this file with Node:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
To start the game, run this file with Node:
To start the game, run this file with Node. Depending on your current directory, run one of:

Comment thread mandatory/4-water-bottle.js Outdated
expect(bottle.isEmpty()).toEqual(true);
});

test("Given an empty bottle, when pour is called, then the volume does decrease", () => {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As with the other PR - this test description/body are mismatched :)

@gregdyke gregdyke merged commit b4a864b into CodeYourFuture:main Jul 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants