Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

テスト通した #291

Merged
merged 1 commit into from
Jul 2, 2020
Merged

テスト通した #291

merged 1 commit into from
Jul 2, 2020

Conversation

maxfie1d
Copy link
Contributor

@maxfie1d maxfie1d commented Jul 2, 2020

Fix #290

テスト通るようにしたが、直し方が合っているか一応確認してほしいです。

@maxfie1d maxfie1d requested a review from dh9489 July 2, 2020 05:07
page: anyNamed('page'),
)).thenAnswer((_) => Future.value([pin]));
bloc
..add(const LoadBoardList())
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CreatePinイベントがDefaultStateでないと機能しないため、先にLoadBoardListイベントを発行してInitialState -> DefaultStateに遷移するようにしてます。

@@ -106,7 +106,7 @@ class EditPin extends Equatable {
title: json['title'] as String,
description: json['description'] as String,
isPrivate: json['isPrivate'] as bool,
tags: (json['tags'] as String)?.toTagList(),
tags: (json['tagString'] as String)?.toTagList(),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as String ということは tags ではなく tagString が正しいと思い、修正しました。

@codecov
Copy link

codecov bot commented Jul 2, 2020

Codecov Report

Merging #291 into develop will decrease coverage by 0.26%.
The diff coverage is 78.49%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #291      +/-   ##
===========================================
- Coverage    76.75%   76.48%   -0.27%     
===========================================
  Files           29       29              
  Lines          714      791      +77     
===========================================
+ Hits           548      605      +57     
- Misses         166      186      +20     
Impacted Files Coverage Δ
lib/api/pins_api.dart 65.38% <0.00%> (-11.89%) ⬇️
lib/repository/pins_repository.dart 0.00% <0.00%> (ø)
lib/bloc/pin_detail_screen_bloc.dart 70.96% <33.33%> (-3.11%) ⬇️
lib/model/pin_model.dart 91.91% <89.47%> (-8.09%) ⬇️
lib/bloc/new_pin_board_select_screen_bloc.dart 65.43% <100.00%> (-2.47%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c5fa925...6cd11bf. Read the comment docs.

@dh9489 dh9489 merged commit 53f9197 into develop Jul 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

テスト通っていないので直す
2 participants