Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minoka's eventstream puzzler draft #34

Draft
wants to merge 20 commits into
base: eventstream-puzzler
Choose a base branch
from

Conversation

kakizaki55
Copy link

@kakizaki55 kakizaki55 commented Jun 8, 2022

1. Ticket:
Issue #none

2. What this does:

  • event stream puzzler function written
  • extrapolated function into 2 more smaller functions
  • test for all function, all test passing.

3. Media:

Screen Shot 2022-06-08 at 3 58 16 PM

4. How to test:
pull down code and run yarn test

src/index.test.ts Outdated Show resolved Hide resolved
src/index.test.ts Outdated Show resolved Hide resolved
src/index.test.ts Outdated Show resolved Hide resolved
src/index.test.ts Outdated Show resolved Hide resolved
expect(true).toBeTruthy()
describe('Event scoring function tests.', () => {

describe('Tests for getting the highest scoring region in a event stream', () => {
Copy link

Choose a reason for hiding this comment

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

describe text should just be the function being tested. getHighestScoringRegions

Copy link

Choose a reason for hiding this comment

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

the it blocks describe exactly how the described function is being tested in each case.

})
})

describe('Tests for getting the total score of each region', () => {
Copy link

Choose a reason for hiding this comment

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

same. describe string should be function name.

})
})

describe('Test for getting the correct score for each event', () => {
Copy link

Choose a reason for hiding this comment

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

same

@DuHerb DuHerb marked this pull request as draft June 9, 2022 17:19
@DuHerb DuHerb requested a review from rachoac June 9, 2022 17:19
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.

2 participants