Posts by Julio • 45 points
5 posts
-
0
votes1
answer199
viewsQ: Jest gives error: "Typeerror: expect(...). toHaveStyle is not a Function"
I’m trying to use jest to test the style of a component, and it’s giving me this error: "TypeError: expect(...).toHaveStyle is not a function" It is a simple component I created only with…
-
1
votes2
answers115
viewsQ: Word most often in a string from a size
I’m trying to solve a problem, where I need to see the word more often in a String. The problem is that these words are assembled from a given size. For example: "5tardenoitemanhãtardenoitetarde" I…
javascriptasked Julio 45 -
0
votes1
answer200
viewsQ: Place image outside the Bootstrap container
I need to place an image outside the container, so that the right margin remains the container standard (responsive), and the image always stays together with a "button". Follow the image below to…
-
1
votes3
answers291
viewsQ: Javascript character limit to full stop
I am consuming an API, and this API has a description. I would like to display this description with a character limit, and if you exceed this limit, add a (...) to the end or go to the last…
-
0
votes3
answers41
viewsQ: Sidebar open at the place I click?
Hi, I’m trying to do a sidebar on a button, and I need this sidebar to appear where I click the button. But for some reason, this sidebar is climbing to the top of the screen. Follows the code:…