Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(error): add ErrorTypeEqual #5

Merged
merged 1 commit into from
Feb 13, 2020
Merged

feat(error): add ErrorTypeEqual #5

merged 1 commit into from
Feb 13, 2020

Conversation

m-ysk
Copy link
Contributor

@m-ysk m-ysk commented Feb 13, 2020

テスト用に以下のような関数が欲しくなったので追加しました。

  • 以下の条件のいずれかを満たす場合にはtrue、それ以外の場合にはfalseを返す
    • x, y がDeepEqualである
    • x, y がいずれもCommonErrorであり、かつErrorTypeが同一

異常系のテスト時に、期待したErrorTypeが返っているか確認するために使用することを想定

@m-ysk m-ysk requested review from myuon and tawashichan February 13, 2020 10:00
@myuon myuon merged commit 1b97963 into master Feb 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants