Skip to content

Commit

Permalink
chore: tests fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Dec 9, 2024
1 parent 6d6c6de commit 0241176
Show file tree
Hide file tree
Showing 9 changed files with 62 additions and 46 deletions.
4 changes: 2 additions & 2 deletions tests/__mocks__/results/github-comment-results.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/__mocks__/results/output-reward-split.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<details><summary><b><h3>&nbsp;<a href="https://pay.ubq.fi?claim=W3sidHlwZSI6ImVyYzIwLXBlcm1pdCIsInBlcm1pdCI6eyJwZXJtaXR0ZWQiOnsidG9rZW4iOiIweGU5MUQxNTNFMGI0MTUxOEEyQ2U4RGQzRDc5NDRGYTg2MzQ2M2E5N2QiLCJhbW91bnQiOiI1MjY0MDAwMDAwMDAwMDAwMDAwMCJ9LCJub25jZSI6IjMzOTI5NDE3NjI3OTM5NzU1OTMxNzgxMTE1NjU5ODM3OTc0NzU4OTQwMzc0OTU0MDQxMzEyODYzODI3ODA0MTE2ODc3MDgzNTI4ODgiLCJkZWFkbGluZSI6IjExNTc5MjA4OTIzNzMxNjE5NTQyMzU3MDk4NTAwODY4NzkwNzg1MzI2OTk4NDY2NTY0MDU2NDAzOTQ1NzU4NDAwNzkxMzEyOTYzOTkzNSJ9LCJ0cmFuc2ZlckRldGFpbHMiOnsidG8iOiIweDREMDcwNGY0MDBENTdCYTkzZUVhODg3NjVDM0ZjREJEODI2ZENGYzQiLCJyZXF1ZXN0ZWRBbW91bnQiOiI1MjY0MDAwMDAwMDAwMDAwMDAwMCJ9LCJvd25lciI6IjB4ZDk1MzBGM2ZiQkVhMTFiZUQwMURDMDlFNzkzMThmMmYyMDIyMzcxNiIsInNpZ25hdHVyZSI6IjB4NDIzMjA1YjQ1MmEwZmU4ZGE3MjFhNDY4OGYzYjQwY2M5MDQ0YzY4YmU0ZDYyYjRjNTcyZjBiYjJmYTdkZjUzMzYyZmIzZjNjMDhkNzU3NjgxMDM0ZTRmNDQ3ZjVmODIxZjcxZWVjNzExNzhjYzU4YjBhMmRmNTVjYzkyOTkxYzExYyIsIm5ldHdvcmtJZCI6MTAwfV0=" target="_blank" rel="noopener">[ 52.64 WXDAI ]</a>&nbsp;</h3><h6>@0x4007</h6></b></summary><h6>Contributions Overview</h6><table><thead><tr><th>View</th><th>Contribution</th><th>Count</th><th>Reward</th></tr></thead><tbody><tr><td>Issue</td><td>Task</td><td>0.5</td><td>25</td></tr><tr><td>Issue</td><td>Specification</td><td>1</td><td>5.69</td></tr><tr><td>Issue</td><td>Comment</td><td>2</td><td>6.544</td></tr><tr><td>Review</td><td>Comment</td><td>3</td><td>15.406</td></tr></tbody></table><h6>Conversation Incentives</h6><table><thead><tr><th>Comment</th><th>Formatting</th><th>Relevance</th><th>Priority</th><th>Reward</th></tr></thead><tbody><tr><td><h6><a href="https://github.com/ubiquity/work.ubq.fi/issues/69" target="_blank" rel="noopener">Looks like the filters are barely useable now that we have the s&hellip;</a></h6></td><td><details><summary>5.69</summary><pre>content:&#13; content:&#13; p:&#13; score: 1&#13; elementCount: 2&#13; img:&#13; score: 1&#13; elementCount: 1&#13; result: 3&#13;regex:&#13; wordCount: 48&#13; wordValue: 0.1&#13; result: 2.69&#13;</pre></details></td><td>1</td><td>1</td><td>5.69</td></tr><tr><td><h6><a href="https://github.com/ubiquity/work.ubq.fi/issues/69#issuecomment-2186802545" target="_blank" rel="noopener">Okay both bots are broken @gentlementlegen We should have spli&hellip;</a></h6></td><td><details><summary>3.77</summary><pre>content:&#13; content:&#13; p:&#13; score: 1&#13; elementCount: 2&#13; result: 2&#13;regex:&#13; wordCount: 13&#13; wordValue: 0.2&#13; result: 1.77&#13;</pre></details></td><td>0.8</td><td>1</td><td>3.416</td></tr><tr><td><h6><a href="https://github.com/ubiquity/work.ubq.fi/issues/69#issuecomment-2186807999" target="_blank" rel="noopener">Actually, looks like it did the right thing for your reward on v&hellip;</a></h6></td><td><details><summary>3.66</summary><pre>content:&#13; content:&#13; p:&#13; score: 1&#13; elementCount: 1&#13; result: 1&#13;regex:&#13; wordCount: 21&#13; wordValue: 0.2&#13; result: 2.66&#13;</pre></details></td><td>0.8</td><td>1</td><td>3.128</td></tr><tr><td><h6><a href="https://github.com/ubiquity/work.ubq.fi/pull/70" target="_blank" rel="noopener">Resolves https://github.com/ubiquity/work.ubq.fi/issues/69</a></h6></td><td><details><summary>2</summary><pre>content:&#13; content:&#13; p:&#13; score: 1&#13; elementCount: 1&#13; a:&#13; score: 1&#13; elementCount: 1&#13; result: 2&#13;regex:&#13; wordCount: 1&#13; wordValue: 0&#13; result: 0&#13;</pre></details></td><td>0.7</td><td>1</td><td>0</td></tr><tr><td><h6><a href="https://github.com/ubiquity/work.ubq.fi/pull/70#issuecomment-2186530214" target="_blank" rel="noopener">I always struggle with Cypress</a></h6></td><td><details><summary>1.79</summary><pre>content:&#13; content:&#13; p:&#13; score: 1&#13; elementCount: 1&#13; result: 1&#13;regex:&#13; wordCount: 5&#13; wordValue: 0.2&#13; result: 0.79&#13;</pre></details></td><td>0.7</td><td>1</td><td>3.106</td></tr><tr><td><h6><a href="https://github.com/ubiquity/work.ubq.fi/pull/70#issuecomment-2186798329" target="_blank" rel="noopener">Only doesn't work on my local, the guess is token expiration aft&hellip;</a></h6></td><td><details><summary>7.5</summary><pre>content:&#13; content:&#13; p:&#13; score: 1&#13; elementCount: 2&#13; a:&#13; score: 1&#13; elementCount: 1&#13; result: 3&#13;regex:&#13; wordCount: 39&#13; wordValue: 0.2&#13; result: 4.5&#13;</pre></details></td><td>0.7</td><td>1</td><td>12.3</td></tr></tbody></table></details><details><summary><b><h3>&nbsp;<a href="https://pay.ubq.fi?claim=W3sidHlwZSI6ImVyYzIwLXBlcm1pdCIsInBlcm1pdCI6eyJwZXJtaXR0ZWQiOnsidG9rZW4iOiIweGU5MUQxNTNFMGI0MTUxOEEyQ2U4RGQzRDc5NDRGYTg2MzQ2M2E5N2QiLCJhbW91bnQiOiIzMjc0MzAwMDAwMDAwMDAwMDAwMCJ9LCJub25jZSI6IjgzMDc2NDM3NDQ2NDk5NTg5MzA0NjExMTI4OTYzOTE2NzEwMTA2ODg2MTAyNDM2MDIzODgxNTIwMDU4MzQ2ODAwNTc4NzU0NDAxNzU1IiwiZGVhZGxpbmUiOiIxMTU3OTIwODkyMzczMTYxOTU0MjM1NzA5ODUwMDg2ODc5MDc4NTMyNjk5ODQ2NjU2NDA1NjQwMzk0NTc1ODQwMDc5MTMxMjk2Mzk5MzUifSwidHJhbnNmZXJEZXRhaWxzIjp7InRvIjoiMHg0RDA3MDRmNDAwRDU3QmE5M2VFYTg4NzY1QzNGY0RCRDgyNmRDRmM0IiwicmVxdWVzdGVkQW1vdW50IjoiMzI3NDMwMDAwMDAwMDAwMDAwMDAifSwib3duZXIiOiIweGQ5NTMwRjNmYkJFYTExYmVEMDFEQzA5RTc5MzE4ZjJmMjAyMjM3MTYiLCJzaWduYXR1cmUiOiIweDhmYzBlYjhkMGIyMmRmYjAzOTBiMGJkZDM0NTY5Y2RlNDE2MmQ5MWE1NTc2OTEzOTkzOWVkZmM4OTdlMWVjZTg3NDZmNjNkY2RlZjg0MjQ1YzIyNjY5NTEwMzAxZDQxZTkxN2Q4NzQ2NjU5Yjg1NDRhNzMwODdkMWEwYjkyNDkyMWIiLCJuZXR3b3JrSWQiOjEwMH1d" target="_blank" rel="noopener">[ 32.743 WXDAI ]</a>&nbsp;</h3><h6>@gentlementlegen</h6></b></summary><h6>Contributions Overview</h6><table><thead><tr><th>View</th><th>Contribution</th><th>Count</th><th>Reward</th></tr></thead><tbody><tr><td>Issue</td><td>Task</td><td>0.5</td><td>25</td></tr><tr><td>Issue</td><td>Comment</td><td>2</td><td>5.168</td></tr><tr><td>Review</td><td>Comment</td><td>1</td><td>2.575</td></tr></tbody></table><h6>Conversation Incentives</h6><table><thead><tr><th>Comment</th><th>Formatting</th><th>Relevance</th><th>Priority</th><th>Reward</th></tr></thead><tbody><tr><td><h6><a href="https://github.com/ubiquity/work.ubq.fi/issues/69#issuecomment-2186805818" target="_blank" rel="noopener">@0x4007 So it should be 25 each? I can confirm this is not handl&hellip;</a></h6></td><td><details><summary>2.54</summary><pre>content:&#13; content:&#13; p:&#13; score: 1&#13; elementCount: 1&#13; result: 1&#13;regex:&#13; wordCount: 25&#13; wordValue: 0.1&#13; result: 1.54&#13;</pre></details></td><td>0.8</td><td>1</td><td>2.232</td></tr><tr><td><h6><a href="https://github.com/ubiquity/work.ubq.fi/issues/69#issuecomment-2186813200" target="_blank" rel="noopener">Ah yes because it doesn't apply the &#96;0.5&#96; multiplier I s&hellip;</a></h6></td><td><details><summary>3.17</summary><pre>content:&#13; content:&#13; p:&#13; score: 1&#13; elementCount: 1&#13; code:&#13; score: 1&#13; elementCount: 1&#13; result: 2&#13;regex:&#13; wordCount: 18&#13; wordValue: 0.1&#13; result: 1.17&#13;</pre></details></td><td>0.8</td><td>1</td><td>2.936</td></tr><tr><td><h6><a href="https://github.com/ubiquity/work.ubq.fi/pull/70#issuecomment-2186914050" target="_blank" rel="noopener">After token expiration, I could not reproduce the problem and st&hellip;</a></h6></td><td><details><summary>3.25</summary><pre>content:&#13; content:&#13; p:&#13; score: 1&#13; elementCount: 1&#13; result: 1&#13;regex:&#13; wordCount: 39&#13; wordValue: 0.1&#13; result: 2.25&#13;</pre></details></td><td>0.7</td><td>1</td><td>2.575</td></tr></tbody></table></details>
<details><summary><b><h3>&nbsp;<a href="https://pay.ubq.fi?claim=W3sidHlwZSI6ImVyYzIwLXBlcm1pdCIsInBlcm1pdCI6eyJwZXJtaXR0ZWQiOnsidG9rZW4iOiIweGU5MUQxNTNFMGI0MTUxOEEyQ2U4RGQzRDc5NDRGYTg2MzQ2M2E5N2QiLCJhbW91bnQiOiI1MjY0MDAwMDAwMDAwMDAwMDAwMCJ9LCJub25jZSI6IjMzOTI5NDE3NjI3OTM5NzU1OTMxNzgxMTE1NjU5ODM3OTc0NzU4OTQwMzc0OTU0MDQxMzEyODYzODI3ODA0MTE2ODc3MDgzNTI4ODgiLCJkZWFkbGluZSI6IjExNTc5MjA4OTIzNzMxNjE5NTQyMzU3MDk4NTAwODY4NzkwNzg1MzI2OTk4NDY2NTY0MDU2NDAzOTQ1NzU4NDAwNzkxMzEyOTYzOTkzNSJ9LCJ0cmFuc2ZlckRldGFpbHMiOnsidG8iOiIweDREMDcwNGY0MDBENTdCYTkzZUVhODg3NjVDM0ZjREJEODI2ZENGYzQiLCJyZXF1ZXN0ZWRBbW91bnQiOiI1MjY0MDAwMDAwMDAwMDAwMDAwMCJ9LCJvd25lciI6IjB4ZDk1MzBGM2ZiQkVhMTFiZUQwMURDMDlFNzkzMThmMmYyMDIyMzcxNiIsInNpZ25hdHVyZSI6IjB4NDIzMjA1YjQ1MmEwZmU4ZGE3MjFhNDY4OGYzYjQwY2M5MDQ0YzY4YmU0ZDYyYjRjNTcyZjBiYjJmYTdkZjUzMzYyZmIzZjNjMDhkNzU3NjgxMDM0ZTRmNDQ3ZjVmODIxZjcxZWVjNzExNzhjYzU4YjBhMmRmNTVjYzkyOTkxYzExYyIsIm5ldHdvcmtJZCI6MTAwfV0=" target="_blank" rel="noopener">[ 52.64 WXDAI ]</a>&nbsp;</h3><h6>@0x4007</h6></b></summary><h6>⚠️ Your rewards have been limited to the task price of 12.5 WXDAI.</h6><h6>Contributions Overview</h6><table><thead><tr><th>View</th><th>Contribution</th><th>Count</th><th>Reward</th></tr></thead><tbody><tr><td>Issue</td><td>Task</td><td>0.5</td><td>25</td></tr><tr><td>Issue</td><td>Specification</td><td>1</td><td>5.69</td></tr><tr><td>Issue</td><td>Comment</td><td>2</td><td>6.544</td></tr><tr><td>Review</td><td>Comment</td><td>3</td><td>15.406</td></tr></tbody></table><h6>Conversation Incentives</h6><table><thead><tr><th>Comment</th><th>Formatting</th><th>Relevance</th><th>Priority</th><th>Reward</th></tr></thead><tbody><tr><td><h6><a href="https://github.com/ubiquity/work.ubq.fi/issues/69" target="_blank" rel="noopener">Looks like the filters are barely useable now that we have the s&hellip;</a></h6></td><td><details><summary>5.69</summary><pre>content:&#13; content:&#13; p:&#13; score: 1&#13; elementCount: 2&#13; img:&#13; score: 1&#13; elementCount: 1&#13; result: 3&#13;regex:&#13; wordCount: 48&#13; wordValue: 0.1&#13; result: 2.69&#13;</pre></details></td><td>1</td><td>1</td><td>5.69</td></tr><tr><td><h6><a href="https://github.com/ubiquity/work.ubq.fi/issues/69#issuecomment-2186802545" target="_blank" rel="noopener">Okay both bots are broken @gentlementlegen We should have spli&hellip;</a></h6></td><td><details><summary>3.77</summary><pre>content:&#13; content:&#13; p:&#13; score: 1&#13; elementCount: 2&#13; result: 2&#13;regex:&#13; wordCount: 13&#13; wordValue: 0.2&#13; result: 1.77&#13;</pre></details></td><td>0.8</td><td>1</td><td>3.416</td></tr><tr><td><h6><a href="https://github.com/ubiquity/work.ubq.fi/issues/69#issuecomment-2186807999" target="_blank" rel="noopener">Actually, looks like it did the right thing for your reward on v&hellip;</a></h6></td><td><details><summary>3.66</summary><pre>content:&#13; content:&#13; p:&#13; score: 1&#13; elementCount: 1&#13; result: 1&#13;regex:&#13; wordCount: 21&#13; wordValue: 0.2&#13; result: 2.66&#13;</pre></details></td><td>0.8</td><td>1</td><td>3.128</td></tr><tr><td><h6><a href="https://github.com/ubiquity/work.ubq.fi/pull/70" target="_blank" rel="noopener">Resolves https://github.com/ubiquity/work.ubq.fi/issues/69</a></h6></td><td><details><summary>2</summary><pre>content:&#13; content:&#13; p:&#13; score: 1&#13; elementCount: 1&#13; a:&#13; score: 1&#13; elementCount: 1&#13; result: 2&#13;regex:&#13; wordCount: 1&#13; wordValue: 0&#13; result: 0&#13;</pre></details></td><td>0.7</td><td>1</td><td>0</td></tr><tr><td><h6><a href="https://github.com/ubiquity/work.ubq.fi/pull/70#issuecomment-2186530214" target="_blank" rel="noopener">I always struggle with Cypress</a></h6></td><td><details><summary>1.79</summary><pre>content:&#13; content:&#13; p:&#13; score: 1&#13; elementCount: 1&#13; result: 1&#13;regex:&#13; wordCount: 5&#13; wordValue: 0.2&#13; result: 0.79&#13;</pre></details></td><td>0.7</td><td>1</td><td>3.106</td></tr><tr><td><h6><a href="https://github.com/ubiquity/work.ubq.fi/pull/70#issuecomment-2186798329" target="_blank" rel="noopener">Only doesn't work on my local, the guess is token expiration aft&hellip;</a></h6></td><td><details><summary>7.5</summary><pre>content:&#13; content:&#13; p:&#13; score: 1&#13; elementCount: 2&#13; a:&#13; score: 1&#13; elementCount: 1&#13; result: 3&#13;regex:&#13; wordCount: 39&#13; wordValue: 0.2&#13; result: 4.5&#13;</pre></details></td><td>0.7</td><td>1</td><td>12.3</td></tr></tbody></table></details><details><summary><b><h3>&nbsp;<a href="https://pay.ubq.fi?claim=W3sidHlwZSI6ImVyYzIwLXBlcm1pdCIsInBlcm1pdCI6eyJwZXJtaXR0ZWQiOnsidG9rZW4iOiIweGU5MUQxNTNFMGI0MTUxOEEyQ2U4RGQzRDc5NDRGYTg2MzQ2M2E5N2QiLCJhbW91bnQiOiIzMjc0MzAwMDAwMDAwMDAwMDAwMCJ9LCJub25jZSI6IjgzMDc2NDM3NDQ2NDk5NTg5MzA0NjExMTI4OTYzOTE2NzEwMTA2ODg2MTAyNDM2MDIzODgxNTIwMDU4MzQ2ODAwNTc4NzU0NDAxNzU1IiwiZGVhZGxpbmUiOiIxMTU3OTIwODkyMzczMTYxOTU0MjM1NzA5ODUwMDg2ODc5MDc4NTMyNjk5ODQ2NjU2NDA1NjQwMzk0NTc1ODQwMDc5MTMxMjk2Mzk5MzUifSwidHJhbnNmZXJEZXRhaWxzIjp7InRvIjoiMHg0RDA3MDRmNDAwRDU3QmE5M2VFYTg4NzY1QzNGY0RCRDgyNmRDRmM0IiwicmVxdWVzdGVkQW1vdW50IjoiMzI3NDMwMDAwMDAwMDAwMDAwMDAifSwib3duZXIiOiIweGQ5NTMwRjNmYkJFYTExYmVEMDFEQzA5RTc5MzE4ZjJmMjAyMjM3MTYiLCJzaWduYXR1cmUiOiIweDhmYzBlYjhkMGIyMmRmYjAzOTBiMGJkZDM0NTY5Y2RlNDE2MmQ5MWE1NTc2OTEzOTkzOWVkZmM4OTdlMWVjZTg3NDZmNjNkY2RlZjg0MjQ1YzIyNjY5NTEwMzAxZDQxZTkxN2Q4NzQ2NjU5Yjg1NDRhNzMwODdkMWEwYjkyNDkyMWIiLCJuZXR3b3JrSWQiOjEwMH1d" target="_blank" rel="noopener">[ 32.743 WXDAI ]</a>&nbsp;</h3><h6>@gentlementlegen</h6></b></summary><h6>Contributions Overview</h6><table><thead><tr><th>View</th><th>Contribution</th><th>Count</th><th>Reward</th></tr></thead><tbody><tr><td>Issue</td><td>Task</td><td>0.5</td><td>25</td></tr><tr><td>Issue</td><td>Comment</td><td>2</td><td>5.168</td></tr><tr><td>Review</td><td>Comment</td><td>1</td><td>2.575</td></tr></tbody></table><h6>Conversation Incentives</h6><table><thead><tr><th>Comment</th><th>Formatting</th><th>Relevance</th><th>Priority</th><th>Reward</th></tr></thead><tbody><tr><td><h6><a href="https://github.com/ubiquity/work.ubq.fi/issues/69#issuecomment-2186805818" target="_blank" rel="noopener">@0x4007 So it should be 25 each? I can confirm this is not handl&hellip;</a></h6></td><td><details><summary>2.54</summary><pre>content:&#13; content:&#13; p:&#13; score: 1&#13; elementCount: 1&#13; result: 1&#13;regex:&#13; wordCount: 25&#13; wordValue: 0.1&#13; result: 1.54&#13;</pre></details></td><td>0.8</td><td>1</td><td>2.232</td></tr><tr><td><h6><a href="https://github.com/ubiquity/work.ubq.fi/issues/69#issuecomment-2186813200" target="_blank" rel="noopener">Ah yes because it doesn't apply the &#96;0.5&#96; multiplier I s&hellip;</a></h6></td><td><details><summary>3.17</summary><pre>content:&#13; content:&#13; p:&#13; score: 1&#13; elementCount: 1&#13; code:&#13; score: 1&#13; elementCount: 1&#13; result: 2&#13;regex:&#13; wordCount: 18&#13; wordValue: 0.1&#13; result: 1.17&#13;</pre></details></td><td>0.8</td><td>1</td><td>2.936</td></tr><tr><td><h6><a href="https://github.com/ubiquity/work.ubq.fi/pull/70#issuecomment-2186914050" target="_blank" rel="noopener">After token expiration, I could not reproduce the problem and st&hellip;</a></h6></td><td><details><summary>3.25</summary><pre>content:&#13; content:&#13; p:&#13; score: 1&#13; elementCount: 1&#13; result: 1&#13;regex:&#13; wordCount: 39&#13; wordValue: 0.1&#13; result: 2.25&#13;</pre></details></td><td>0.7</td><td>1</td><td>2.575</td></tr></tbody></table></details>
<!-- Ubiquity - GithubCommentModule - GithubCommentModule.createStructuredMetadata - 1234
{
"workflowUrl": "https://github.com/ubiquity-os/conversation-rewards/actions/runs/1",
Expand Down
2 changes: 1 addition & 1 deletion tests/__mocks__/results/output.html

Large diffs are not rendered by default.

Loading

0 comments on commit 0241176

Please sign in to comment.