test(client): one renderer-row comparison for both presentation-due tests

オープン 初心者向け
#3,759 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
75/100
issue の種類
リファクタリング
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
javascript
領域
testing

調査の方向性

presentation-due-scene.test.mjs と presentation-due.test.mjs を読み、それぞれが renderer の行をどのように比較するかを確認します。次に、既存の helper sameRow と encoder rowText を見つけます。共通の比較処理をテスト helper に移し、両方のテストで使用します。関数、シンボル、bigint を引き続き拒否するようにします。両方のテストが共通の比較処理を使い、これらのサポート対象外の値で明示的に失敗すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

area: client enhancement priority: low

Follow-up from the #3757 review, non-blocking there.

  • Two implementations of one rule. `presentation-due-scene.test.mjs` now compares renderer rows with `sameRow` (in place). `presentation-due.test.mjs` still compares the same kind of rows with the old `rowText` (encodeCrowdValue + JSON.stringify), and the two differ on key order. Move `sameRow` into a test helper and use it in both.
  • Refusals. `encodeCrowdValue` refused functions, symbols and bigints. `sameRow` compares them with `===`. Renderer rows hold none today, but the shared helper should refuse them as the encoder did, so a row that gains one fails loudly.
主要言語
Go
スター
97
フォーク
61
平均マージ
4時間 25分
マージ済み PR(30日)
953

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

opensro-dev/opensro のほかの issue

opensro-dev/opensro の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。