ita-social-projects / ita-social-projects/StreetCode_Client

[CO #5,6] Cover MainNewStreetcode component with unit tests

Open
#1,139 0 comments 0 reactions 1 assignee Claimed by @Michael-Kolpakov View on GitHub
Front-end tests
Dominant language
TypeScript
Stars
15
Forks
10
PR merge metrics
No merged PRs in 30d

Description

Write unit test for creating a streetcode component:
- test for creation with only all required fields
- test for creation with all possible fields and entities
- load image and audio from project assets (create a folder for_tests if not exists). Use both small and large images with .webp format
- check if correct entity was sent to backend

Write unit test for updating a streetcode component:
- check if all data that was accepted from mocked get request was set in corresponding fields

Mock all needed request to backend such as Create image request and others

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.