Skip to content

Commit

Permalink
♻️ 【第1章 仮実装】テストがまずは通すことを優先して改修する
Browse files Browse the repository at this point in the history
<テスト駆動開発(TDD)の流れ>
✅ 1. まずはテストを1つ書く
✅ 2. すべてのテストを走らせ、新しいテストの失敗を確認する
✅ 3. 小さな変更を行う
✅ 4. すべてのテストを走らせ、すべて成功することを確認する
5. リファクタリングを行って重複を除去する

・テストがとりあえず通るように固定値を入れることで成功させる
  • Loading branch information
dodonki1223 committed Dec 7, 2021
1 parent c35c4c3 commit 77b7422
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/dollar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ export class Dollar {
}

times(multiplier: number) {
this.amount = 10
}
}

0 comments on commit 77b7422

Please sign in to comment.