Skip to content

Commit fe69c62

Browse files
authored
chore(ci): fix lint failures (#8137)
1 parent 4f4edf7 commit fe69c62

2 files changed

Lines changed: 27 additions & 24 deletions

File tree

src/card/tests/Card.spec.ts

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,9 @@ describe('n-card', () => {
219219
}
220220
})
221221

222-
expect(wrapper.find('.n-card-header').classes()).toContain('custom-header-class')
222+
expect(wrapper.find('.n-card-header').classes()).toContain(
223+
'custom-header-class'
224+
)
223225
wrapper.unmount()
224226
})
225227

@@ -233,7 +235,9 @@ describe('n-card', () => {
233235
}
234236
})
235237

236-
expect(wrapper.find('.n-card-content').classes()).toContain('custom-content-class')
238+
expect(wrapper.find('.n-card-content').classes()).toContain(
239+
'custom-content-class'
240+
)
237241
wrapper.unmount()
238242
})
239243

@@ -247,7 +251,9 @@ describe('n-card', () => {
247251
}
248252
})
249253

250-
expect(wrapper.find('.n-card__footer').classes()).toContain('custom-footer-class')
254+
expect(wrapper.find('.n-card__footer').classes()).toContain(
255+
'custom-footer-class'
256+
)
251257
wrapper.unmount()
252258
})
253259

@@ -262,7 +268,9 @@ describe('n-card', () => {
262268
}
263269
})
264270

265-
expect(wrapper.find('.n-card-header__extra').classes()).toContain('custom-extra-class')
271+
expect(wrapper.find('.n-card-header__extra').classes()).toContain(
272+
'custom-extra-class'
273+
)
266274
wrapper.unmount()
267275
})
268276

@@ -299,20 +307,6 @@ describe('n-card', () => {
299307
wrapper.unmount()
300308
})
301309

302-
it('should work with `content-scrollable` prop', async () => {
303-
const wrapper = mount(NCard, {
304-
props: {
305-
contentScrollable: true
306-
},
307-
slots: {
308-
default: () => 'content'
309-
}
310-
})
311-
312-
expect(wrapper.find('.n-scrollbar').exists()).toBe(true)
313-
wrapper.unmount()
314-
})
315-
316310
it('should work with `clickable` prop', async () => {
317311
const onClick = vi.fn()
318312
const wrapper = mount(NCard, {
@@ -347,7 +341,9 @@ describe('n-card', () => {
347341
}
348342
})
349343

350-
expect(wrapper.find('.n-card').classes()).toContain('n-card--content-segmented')
344+
expect(wrapper.find('.n-card').classes()).toContain(
345+
'n-card--content-segmented'
346+
)
351347
wrapper.unmount()
352348
})
353349

@@ -363,7 +359,9 @@ describe('n-card', () => {
363359
}
364360
})
365361

366-
expect(wrapper.find('.n-card').classes()).toContain('n-card--footer-segmented')
362+
expect(wrapper.find('.n-card').classes()).toContain(
363+
'n-card--footer-segmented'
364+
)
367365
wrapper.unmount()
368366
})
369367

@@ -379,7 +377,9 @@ describe('n-card', () => {
379377
}
380378
})
381379

382-
expect(wrapper.find('.n-card').classes()).toContain('n-card--action-segmented')
380+
expect(wrapper.find('.n-card').classes()).toContain(
381+
'n-card--action-segmented'
382+
)
383383
wrapper.unmount()
384384
})
385385
})

src/equation/tests/Equation.spec.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { mount } from '@vue/test-utils'
22
import { h, provide, ref } from 'vue'
3-
import { NEquation } from '../index'
43
import { configProviderInjectionKey } from '../../config-provider/src/context'
4+
import { NEquation } from '../index'
55

66
describe('n-equation', () => {
77
it('should work with import on demand', () => {
@@ -12,7 +12,9 @@ describe('n-equation', () => {
1212
const wrapper = mount(NEquation, {
1313
props: { value: 'E = mc^2' }
1414
})
15-
expect(wrapper.find('.katex').exists() || wrapper.text().includes('no katex')).toBe(true)
15+
expect(
16+
wrapper.find('.katex').exists() || wrapper.text().includes('no katex')
17+
).toBe(true)
1618
wrapper.unmount()
1719
})
1820

@@ -73,7 +75,8 @@ describe('n-equation', () => {
7375

7476
it('should use katex from config provider', () => {
7577
const mockKatex = {
76-
renderToString: (value: string) => `<span class="katex-config">${value}</span>`
78+
renderToString: (value: string) =>
79+
`<span class="katex-config">${value}</span>`
7780
}
7881

7982
const wrapper = mount({

0 commit comments

Comments
 (0)