Skip to content

Commit

Permalink
test: update expected output for missing html tags
Browse files Browse the repository at this point in the history
  • Loading branch information
EresDev committed Jul 15, 2024
1 parent a22defd commit 1ca68d0
Show file tree
Hide file tree
Showing 8 changed files with 495 additions and 431 deletions.
208 changes: 112 additions & 96 deletions tests/__mocks__/results/content-evaluator-results.json

Large diffs are not rendered by default.

70 changes: 35 additions & 35 deletions tests/__mocks__/results/data-purge-result.json

Large diffs are not rendered by default.

200 changes: 108 additions & 92 deletions tests/__mocks__/results/formatting-evaluator-results.json

Large diffs are not rendered by default.

220 changes: 118 additions & 102 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 +1 @@
<details> <summary> <b> <h3> <a href="https://pay.ubq.fi?claim=W3sidHlwZSI6ImVyYzIwLXBlcm1pdCIsInBlcm1pdCI6eyJwZXJtaXR0ZWQiOnsidG9rZW4iOiIweGU5MUQxNTNFMGI0MTUxOEEyQ2U4RGQzRDc5NDRGYTg2MzQ2M2E5N2QiLCJhbW91bnQiOiIzNTA4MDAwMDAwMDAwMDAwMDAwMCJ9LCJub25jZSI6IjI0MzI1Mzc3MDIzMTc5NjEwOTcxMzU1NjgzOTQ2OTU1MjU5OTg3OTgyMTUxMzM5NDUwMzE0NjAwNzc3OTM3ODU5Mzk3OTYyODgzODA4IiwiZGVhZGxpbmUiOiI1Nzg5NjA0NDYxODY1ODA5NzcxMTc4NTQ5MjUwNDM0Mzk1MzkyNjYzNDk5MjMzMjgyMDI4MjAxOTcyODc5MjAwMzk1NjU2NDgxOTk2NyJ9LCJ0cmFuc2ZlckRldGFpbHMiOnsidG8iOiIweDREMDcwNGY0MDBENTdCYTkzZUVhODg3NjVDM0ZjREJEODI2ZENGYzQiLCJyZXF1ZXN0ZWRBbW91bnQiOiIzNTA4MDAwMDAwMDAwMDAwMDAwMCJ9LCJvd25lciI6IjB4ZDk1MzBGM2ZiQkVhMTFiZUQwMURDMDlFNzkzMThmMmYyMDIyMzcxNiIsInNpZ25hdHVyZSI6IjB4Y2JkYWIyZjk1MWNmM2YxMTgxN2I4NjdjNDE1YWRkZTA1MTg2YjVkNDhjYmUwMGFiMzcxZGM5ZTQyNTAxZDE2MDNjYzcwNGYyNTIxMWQzNDZiNzc0MmY3ZDZlNWNiOTNkNTBlMDcwMzVmZTgzY2NlYmFhNzA4ZmE5ZGE1MWE3M2QxYyIsIm5ldHdvcmtJZCI6MTAwfV0=" target="_blank" rel="noopener"> [ 35.08 WXDAI ] </a> </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>4.8</td> </tr> <tr> <td>Issue</td> <td>Comment</td> <td>2</td> <td>5.28</td> </tr> </tbody> </table> <h6>Conversation Incentives</h6> <table> <thead> <tr> <th>Comment</th> <th>Formatting</th> <th>Relevance</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> 4.8 </summary> <pre>content:&#13; p:&#13; count: 48&#13; score: 1&#13; img:&#13; count: 1&#13; score: 0&#13;wordValue: 0.1&#13;formattingMultiplier: 1&#13;</pre> </details> </td> <td>1</td> <td>4.8</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 split&hellip;</a> </h6> </td> <td> <details> <summary> 2.6 </summary> <pre>content:&#13; p:&#13; count: 13&#13; score: 1&#13;wordValue: 0.2&#13;formattingMultiplier: 1&#13;</pre> </details> </td> <td>0.8</td> <td>2.08</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> 4 </summary> <pre>content:&#13; p:&#13; count: 20&#13; score: 1&#13;wordValue: 0.2&#13;formattingMultiplier: 1&#13;</pre> </details> </td> <td>0.8</td> <td>3.2</td> </tr> </tbody> </table> </details><details> <summary> <b> <h3> <a href="undefined" target="_blank" rel="noopener"> [ 25.82 WXDAI ] </a> </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>0.82</td> </tr> </tbody> </table> <h6>Conversation Incentives</h6> <table> <thead> <tr> <th>Comment</th> <th>Formatting</th> <th>Relevance</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> 0.6 </summary> <pre>content:&#13; p:&#13; count: 24&#13; score: 1&#13;wordValue: 0.1&#13;formattingMultiplier: 0.25&#13;</pre> </details> </td> <td>0.8</td> <td>0.48</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> 0.425 </summary> <pre>content:&#13; p:&#13; count: 16&#13; score: 1&#13; code:&#13; count: 1&#13; score: 1&#13;wordValue: 0.1&#13;formattingMultiplier: 0.25&#13;</pre> </details> </td> <td>0.8</td> <td>0.34</td> </tr> </tbody> </table> </details>
<details> <summary> <b> <h3> <a href="https://pay.ubq.fi?claim=W3sidHlwZSI6ImVyYzIwLXBlcm1pdCIsInBlcm1pdCI6eyJwZXJtaXR0ZWQiOnsidG9rZW4iOiIweGU5MUQxNTNFMGI0MTUxOEEyQ2U4RGQzRDc5NDRGYTg2MzQ2M2E5N2QiLCJhbW91bnQiOiIzNTA4MDAwMDAwMDAwMDAwMDAwMCJ9LCJub25jZSI6IjI0MzI1Mzc3MDIzMTc5NjEwOTcxMzU1NjgzOTQ2OTU1MjU5OTg3OTgyMTUxMzM5NDUwMzE0NjAwNzc3OTM3ODU5Mzk3OTYyODgzODA4IiwiZGVhZGxpbmUiOiI1Nzg5NjA0NDYxODY1ODA5NzcxMTc4NTQ5MjUwNDM0Mzk1MzkyNjYzNDk5MjMzMjgyMDI4MjAxOTcyODc5MjAwMzk1NjU2NDgxOTk2NyJ9LCJ0cmFuc2ZlckRldGFpbHMiOnsidG8iOiIweDREMDcwNGY0MDBENTdCYTkzZUVhODg3NjVDM0ZjREJEODI2ZENGYzQiLCJyZXF1ZXN0ZWRBbW91bnQiOiIzNTA4MDAwMDAwMDAwMDAwMDAwMCJ9LCJvd25lciI6IjB4ZDk1MzBGM2ZiQkVhMTFiZUQwMURDMDlFNzkzMThmMmYyMDIyMzcxNiIsInNpZ25hdHVyZSI6IjB4Y2JkYWIyZjk1MWNmM2YxMTgxN2I4NjdjNDE1YWRkZTA1MTg2YjVkNDhjYmUwMGFiMzcxZGM5ZTQyNTAxZDE2MDNjYzcwNGYyNTIxMWQzNDZiNzc0MmY3ZDZlNWNiOTNkNTBlMDcwMzVmZTgzY2NlYmFhNzA4ZmE5ZGE1MWE3M2QxYyIsIm5ldHdvcmtJZCI6MTAwfV0=" target="_blank" rel="noopener"> [ 35.08 WXDAI ] </a> </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>4.8</td> </tr> <tr> <td>Issue</td> <td>Comment</td> <td>2</td> <td>5.28</td> </tr> </tbody> </table> <h6>Conversation Incentives</h6> <table> <thead> <tr> <th>Comment</th> <th>Formatting</th> <th>Relevance</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; ![IMG_103370966922-1](https://github.com/ubiquity/work.ubq.fi/assets/4975670/149aca97-49ce-4d37-9757-00223cae9920)</a> </h6> </td> <td> <details> <summary> 4.8 </summary> <pre>content:&#13; p:&#13; count: 48&#13; score: 1&#13; img:&#13; count: 1&#13; score: 0&#13;wordValue: 0.1&#13;formattingMultiplier: 1&#13;</pre> </details> </td> <td>1</td> <td>4.8</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 split the assignee reward</a> </h6> </td> <td> <details> <summary> 2.6 </summary> <pre>content:&#13; p:&#13; count: 13&#13; score: 1&#13;wordValue: 0.2&#13;formattingMultiplier: 1&#13;</pre> </details> </td> <td>0.8</td> <td>2.08</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> 4 </summary> <pre>content:&#13; p:&#13; count: 20&#13; score: 1&#13;wordValue: 0.2&#13;formattingMultiplier: 1&#13;</pre> </details> </td> <td>0.8</td> <td>3.2</td> </tr> </tbody> </table> </details><details> <summary> <b> <h3> <a href="undefined" target="_blank" rel="noopener"> [ 25.82 WXDAI ] </a> </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>0.82</td> </tr> </tbody> </table> <h6>Conversation Incentives</h6> <table> <thead> <tr> <th>Comment</th> <th>Formatting</th> <th>Relevance</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> 0.6 </summary> <pre>content:&#13; p:&#13; count: 24&#13; score: 1&#13;wordValue: 0.1&#13;formattingMultiplier: 0.25&#13;</pre> </details> </td> <td>0.8</td> <td>0.48</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> 0.425 </summary> <pre>content:&#13; p:&#13; count: 16&#13; score: 1&#13; code:&#13; count: 1&#13; score: 1&#13;wordValue: 0.1&#13;formattingMultiplier: 0.25&#13;</pre> </details> </td> <td>0.8</td> <td>0.34</td> </tr> </tbody> </table> </details>
2 changes: 1 addition & 1 deletion tests/__mocks__/results/output.html

Large diffs are not rendered by default.

Loading

0 comments on commit 1ca68d0

Please sign in to comment.