@@ -13,7 +13,7 @@ const SpaceTheme = ({ children }: { children: React.ReactNode }) => {
13
13
}
14
14
15
15
describe ( '#x' , ( ) => {
16
- it . only ( 'creates system based components' , ( ) => {
16
+ it ( 'creates system based components' , ( ) => {
17
17
render ( < x . View m = { 2 } p = { 1 } testID = "dummy" /> )
18
18
19
19
expect ( screen . getByTestId ( 'dummy' ) ) . toHaveStyle ( {
@@ -28,7 +28,7 @@ describe('#x', () => {
28
28
} )
29
29
} )
30
30
31
- it . only ( 'supports "as" prop' , ( ) => {
31
+ it ( 'supports "as" prop' , ( ) => {
32
32
render ( < x . View as = { Text } m = { 2 } p = { 1 } testID = "dummy" /> )
33
33
34
34
const dummyComponent = screen . getByTestId ( 'dummy' )
@@ -47,7 +47,7 @@ describe('#x', () => {
47
47
} )
48
48
} )
49
49
50
- it . only ( 'uses theme' , ( ) => {
50
+ it ( 'uses theme' , ( ) => {
51
51
render (
52
52
< SpaceTheme >
53
53
< x . Text m = { 2 } p = { 1 } testID = "dummy" >
@@ -72,7 +72,7 @@ describe('#x', () => {
72
72
} )
73
73
} )
74
74
75
- it . only ( 'does not forward props' , ( ) => {
75
+ it ( 'does not forward props' , ( ) => {
76
76
render ( < x . View display = "flex" data-foo = "bar" testID = "dummy" /> )
77
77
78
78
const dummyComponent = screen . getByTestId ( 'dummy' )
@@ -83,27 +83,27 @@ describe('#x', () => {
83
83
expect ( dummyComponent ) . toHaveProp ( 'data-foo' , 'bar' )
84
84
} )
85
85
86
- it . only ( 'avoids passing system props to native element' , ( ) => {
86
+ it ( 'avoids passing system props to native element' , ( ) => {
87
87
render ( < x . View fontSize = { 10 } testID = "dummy" /> )
88
88
89
89
expect ( screen . getByTestId ( 'dummy' ) ) . not . toHaveProp ( 'fontSize' )
90
90
} )
91
91
92
- it . only ( 'passes native attrs to native element' , ( ) => {
92
+ it ( 'passes native attrs to native element' , ( ) => {
93
93
render ( < x . View accessibilityHint = "test" testID = "dummy" /> )
94
94
95
95
expect ( screen . getByTestId ( 'dummy' ) ) . toHaveProp ( 'accessibilityHint' , 'test' )
96
96
} )
97
97
98
- it . only ( 'avoids passing system props to "as" component' , ( ) => {
98
+ it ( 'avoids passing system props to "as" component' , ( ) => {
99
99
const Component = ( props : any ) => < View { ...props } />
100
100
101
101
render ( < x . View as = { Component } fontSize = { 10 } testID = "dummy" /> )
102
102
103
103
expect ( screen . getByTestId ( 'dummy' ) ) . not . toHaveProp ( 'fontSize' )
104
104
} )
105
105
106
- it . only ( 'passes non-system props to "as" component' , ( ) => {
106
+ it ( 'passes non-system props to "as" component' , ( ) => {
107
107
const Component = ( { asdf, ...props } : any ) => (
108
108
< Text { ...props } > { asdf } </ Text >
109
109
)
0 commit comments