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

Fix tests #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix tests #21

wants to merge 1 commit into from

Conversation

emlyn
Copy link

@emlyn emlyn commented Aug 9, 2021

The tests fail with:

 FAIL  src/db/guitar.test.js (11.684s)
  ● Guitar Chords › Key F › Suffix Fmajor › Positions › Fingers › The 2 position fingers array should have values higher or equal to 0

    expect(received).toBeGreaterThanOrEqual(expected)

    Expected: >= 0
    Received:    -1

Looking at the other chords it looks like fingers should contain 0s instead of xs.

The tests fail with:
```
 FAIL  src/db/guitar.test.js (11.684s)
  ● Guitar Chords › Key F › Suffix Fmajor › Positions › Fingers › The 2 position fingers array should have values higher or equal to 0
```
Looking at the other chords it looks like `fingers` should contain `0`s instead of `x`s.
Copy link

@sircris sircris left a comment

Choose a reason for hiding this comment

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

Looks good @emlyn

@@ -10,7 +10,7 @@ export default {
},
{
frets: 'xx3211',
fingers: 'xx3211',
fingers: '003211',
Copy link

Choose a reason for hiding this comment

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

@emlyn nice fix. @tombatossals, can you incorporate this update so that the test on the master branch code can succeed? I did verify that it does work properly after this change is in place.

@jonbae jonbae mentioned this pull request Aug 31, 2023
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