-
Notifications
You must be signed in to change notification settings - Fork 0
Test spa branch #92
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
base: main
Are you sure you want to change the base?
Test spa branch #92
Conversation
| sequenceUpdates = resp.sequences | ||
| } | ||
| if (sequenceUpdates) { | ||
| if (sequenceUpdates && sequenceUpdates.length > 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Turns out that an empty list ([]) is truthy.
| if (resp.type !== 'getProjectFile') { | ||
| console.warn(resp) | ||
| throw Error('Unexpected response from Stan Playground') | ||
| throw Error('Unexpected response from Stan Playground while retrieving project file') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made the error messages more specific to make it easier to distinguish the different test cases.
| expect(colorSets.length).toEqual(chains.length) | ||
| colorSets.forEach(cs => expect(chainColorsBase.includes(rgbToHex(cs))).toBeTruthy()) | ||
| }) | ||
| test("Renders black color swatch if appropriate color not found", () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd missed this case earlier.
Codecov Report
@@ Coverage Diff @@
## main #92 +/- ##
==========================================
+ Coverage 16.15% 18.55% +2.39%
==========================================
Files 80 80
Lines 5854 5854
Branches 138 161 +23
==========================================
+ Hits 946 1086 +140
+ Misses 4908 4768 -140
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 6 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Apparently I never actually hit the PR button on this--oops!
I think it's pretty straightforward--just adding some tests for the rest of the changes from the prior PR #85.