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

test: add createUser test and add account test #25

Merged
merged 3 commits into from
Nov 17, 2024

Conversation

ucmazmehmet
Copy link
Contributor

  • test: createUser Test and account test

  • comment this code-bloc, because login and authorities wrong set.
 //TODO this code-bloc not working in unit-test
    // final cacheStorage = getStorageCache;
    // String username = cacheStorage["username"] ?? '';
    // if (endpoint.startsWith('/account') || endpoint.startsWith('/users')) {
    //   try {
    //     var responseJson = json.decode(responseBody);
    //     responseJson['login'] = username;
    //     responseJson['authorities'] = ['ROLE_${username.toUpperCase()}'];
    //     response = Future.value(http.Response(json.encode(responseJson), httpStatusCode));
    //   } catch (e) {
    //     debugPrint("There is no response body to update with username");
    //   }

  • phoneNumber is commented, because phoneNumber is not using in account screen
  • add key in create_form_widget fields

Copy link
Owner

@cevheri cevheri left a comment

Choose a reason for hiding this comment

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

Thanks

@cevheri cevheri merged commit 4b2e857 into cevheri:main Nov 17, 2024
1 of 2 checks passed
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