16848: Fixes unit tests.
authorLucas Di Pentima <lucas@di-pentima.com.ar>
Wed, 17 Mar 2021 20:24:29 +0000 (17:24 -0300)
committerLucas Di Pentima <lucas@di-pentima.com.ar>
Wed, 17 Mar 2021 20:24:29 +0000 (17:24 -0300)
commit4c2c72d649f421f63ba95b7bf3978491f78a6c72
tree519a28b38e3fb4f106ef3fab4e2876216f633f89
parent835fca715fcf8da391049b46ae89f600569896f0
16848: Fixes unit tests.

DetailsAttribute component needed a mocked store to be able to be tested
inside TokenDialog. Extracted the layout related code to a simpler component
so that can be used directly and tested is easier.
Also, fixed a couple of assertions on the token dialog tests.

Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas@di-pentima.com.ar>
src/components/details-attribute/details-attribute.tsx
src/views-components/token-dialog/token-dialog.test.tsx
src/views-components/token-dialog/token-dialog.tsx