File tree Expand file tree Collapse file tree 4 files changed +16
-16
lines changed
skeleton-react/test/components
skeleton-svelte/test/components Expand file tree Collapse file tree 4 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -124,8 +124,8 @@ describe('DatePicker', () => {
124124
125125 describe ( 'TableRow' , ( ) => {
126126 it ( 'renders' , async ( ) => {
127- const { getAllByTestId } = await render ( < Test /> ) ;
128- expect ( getAllByTestId ( 'table-row' ) [ 0 ] ) . toBeInTheDocument ( ) ;
127+ const { getByTestId } = await render ( < Test /> ) ;
128+ expect ( getByTestId ( 'table-row' ) ) . toBeInTheDocument ( ) ;
129129 } ) ;
130130 } ) ;
131131
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ describe('Menu', () => {
1919
2020 describe ( 'Indicator' , ( ) => {
2121 it ( 'renders' , async ( ) => {
22- const { getAllByTestId } = await render ( < Test /> ) ;
23- expect ( getAllByTestId ( 'indicator' ) ) . toHaveLength ( 2 ) ;
22+ const { getByTestId } = await render ( < Test /> ) ;
23+ expect ( getByTestId ( 'indicator' ) ) . toHaveLength ( 2 ) ;
2424 } ) ;
2525 } ) ;
2626
@@ -75,15 +75,15 @@ describe('Menu', () => {
7575
7676 describe ( 'ItemText' , ( ) => {
7777 it ( 'renders' , async ( ) => {
78- const { getAllByTestId } = await render ( < Test /> ) ;
79- expect ( getAllByTestId ( 'item-text' ) ) . toHaveLength ( 3 ) ;
78+ const { getByTestId } = await render ( < Test /> ) ;
79+ expect ( getByTestId ( 'item-text' ) ) . toHaveLength ( 3 ) ;
8080 } ) ;
8181 } ) ;
8282
8383 describe ( 'ItemIndicator' , ( ) => {
8484 it ( 'renders' , async ( ) => {
85- const { getAllByTestId } = await render ( < Test /> ) ;
86- expect ( getAllByTestId ( 'item-indicator' ) ) . toHaveLength ( 3 ) ;
85+ const { getByTestId } = await render ( < Test /> ) ;
86+ expect ( getByTestId ( 'item-indicator' ) ) . toHaveLength ( 3 ) ;
8787 } ) ;
8888 } ) ;
8989
Original file line number Diff line number Diff line change @@ -124,8 +124,8 @@ describe('DatePicker', () => {
124124
125125 describe ( 'TableRow' , ( ) => {
126126 it ( 'renders' , async ( ) => {
127- const { getAllByTestId } = await render ( Test ) ;
128- expect ( getAllByTestId ( 'table-row' ) [ 0 ] ) . toBeInTheDocument ( ) ;
127+ const { getByTestId } = await render ( Test ) ;
128+ expect ( getByTestId ( 'table-row' ) [ 0 ] ) . toBeInTheDocument ( ) ;
129129 } ) ;
130130 } ) ;
131131
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ describe('Menu', () => {
1919
2020 describe ( 'Indicator' , ( ) => {
2121 it ( 'renders' , async ( ) => {
22- const { getAllByTestId } = await render ( Test ) ;
23- expect ( getAllByTestId ( 'indicator' ) ) . toHaveLength ( 2 ) ;
22+ const { getByTestId } = await render ( Test ) ;
23+ expect ( getByTestId ( 'indicator' ) ) . toHaveLength ( 2 ) ;
2424 } ) ;
2525 } ) ;
2626
@@ -75,15 +75,15 @@ describe('Menu', () => {
7575
7676 describe ( 'ItemText' , ( ) => {
7777 it ( 'renders' , async ( ) => {
78- const { getAllByTestId } = await render ( Test ) ;
79- expect ( getAllByTestId ( 'item-text' ) ) . toHaveLength ( 3 ) ;
78+ const { getByTestId } = await render ( Test ) ;
79+ expect ( getByTestId ( 'item-text' ) ) . toHaveLength ( 3 ) ;
8080 } ) ;
8181 } ) ;
8282
8383 describe ( 'ItemIndicator' , ( ) => {
8484 it ( 'renders' , async ( ) => {
85- const { getAllByTestId } = await render ( Test ) ;
86- expect ( getAllByTestId ( 'item-indicator' ) ) . toHaveLength ( 3 ) ;
85+ const { getByTestId } = await render ( Test ) ;
86+ expect ( getByTestId ( 'item-indicator' ) ) . toHaveLength ( 3 ) ;
8787 } ) ;
8888 } ) ;
8989
You can’t perform that action at this time.
0 commit comments