Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Jun 20, 2022
1 parent 80265ef commit e645af4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Expand Up @@ -59,7 +59,7 @@ describe('Message on command', () => {
const getTopValue = (elm: Element): number =>
Number.parseInt(getStyle(elm as HTMLElement, 'top'), 10)

const topValues = []
const topValues: number[] = []
elements.forEach((e) => {
topValues.push(getTopValue(e))
})
Expand Down
6 changes: 2 additions & 4 deletions packages/components/message/__tests__/message.test.ts
Expand Up @@ -91,10 +91,8 @@ describe('Message.vue', () => {
const type = 'some-type'
const wrapper = _mount({ props: { type } })

for (const key in TypeComponentsMap) {
expect(wrapper.findComponent(TypeComponentsMap[key]).exists()).toBe(
false
)
for (const component of Object.values(TypeComponentsMap)) {
expect(wrapper.findComponent(component).exists()).toBe(false)
}
console.warn = consoleWarn
})
Expand Down

0 comments on commit e645af4

Please sign in to comment.