Skip to content

Commit

Permalink
test: 更新单元测试
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyh2001 committed Aug 3, 2023
1 parent 433e90c commit 375670c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import { mount } from '@vue/test-utils'
import { describe, expect, test } from 'vitest'
import { FInfiniteScrolling } from '../index'

describe('FInfiniteScrolling', () => {
test('class', () => {
const wrapper = mount(FInfiniteScrolling)
expect(wrapper.classes()).toContain('f-infinite-scrolling')
expect(1 + 1).toBe(2)
})
})
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
}
})
</script>

<template>
<div class="f-infinite-scrolling">
<slot />
Expand Down

0 comments on commit 375670c

Please sign in to comment.