Skip to content

Commit

Permalink
[ Add ] added enums tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anasfik committed Jul 28, 2023
1 parent 8998dd0 commit 60e8a9d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/youcan_pay_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,18 @@ void main() async {
});
});

group("Enums Test Group", () {
test("enum case conversion", () {
final generalExample = camelToSnake("myNameIsAnas");
expect(generalExample, "my_name_is_anas");

final enumValue1 = YouCanPayBalanceHistorySortField.causerType;
expect(enumValue1.snakeCasedName, "causer_type");

final enumValue2 = YouCanPayTransfersSortField.createdAt;
expect(enumValue2.snakeCasedName, "created_at");
});
});
group("Headers Builder Test Group", () {
test("builder", () {
expect(HeadersBuilder().headers, isEmpty);
Expand Down

0 comments on commit 60e8a9d

Please sign in to comment.