This repository was archived by the owner on Dec 6, 2021. It is now read-only.
Commit 10ed436 1 parent d34d7a8 commit 10ed436 Copy full SHA for 10ed436
File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -134,10 +134,10 @@ describe('AtInput', () => {
134
134
135
135
it ( 'should render prop border' , async ( ) => {
136
136
const wrapper = factory ( )
137
- expect ( wrapper . find ( '.at-input--without-border' ) . exists ( ) ) . toBeTruthy ( )
137
+ expect ( wrapper . find ( '.at-input--without-border' ) . exists ( ) ) . toBeFalsy ( )
138
138
139
139
await wrapper . setProps ( { border : false } )
140
- expect ( wrapper . find ( '.at-input--without-border' ) . exists ( ) ) . toBeFalsy ( )
140
+ expect ( wrapper . find ( '.at-input--without-border' ) . exists ( ) ) . toBeTruthy ( )
141
141
} )
142
142
143
143
it ( 'should render prop editable' , async ( ) => {
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ const AtInput = defineComponent({
135
135
136
136
const rootClasses = computed ( ( ) => ( {
137
137
'at-input' : true ,
138
- 'at-input--without-border' : props . border
138
+ 'at-input--without-border' : ! props . border
139
139
} ) )
140
140
141
141
const containerClasses = computed ( ( ) => ( {
@@ -310,4 +310,4 @@ const AtInput = defineComponent({
310
310
}
311
311
} )
312
312
313
- export default AtInput
313
+ export default AtInput
You can’t perform that action at this time.
0 commit comments