-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
511 additions
and
4,541 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { mount } from '@vue/test-utils' | ||
import { describe, it, expect, beforeEach, afterEach } from 'vitest' | ||
|
||
import MessageIndicator from './MessageIndicator.vue' | ||
|
||
describe('LogoImage', () => { | ||
const Wrapper = () => { | ||
return mount(MessageIndicator) | ||
} | ||
|
||
let wrapper: ReturnType<typeof Wrapper> | ||
|
||
beforeEach(() => { | ||
wrapper = Wrapper() | ||
}) | ||
|
||
afterEach(() => { | ||
wrapper.unmount() | ||
}) | ||
|
||
it('renders', () => { | ||
expect(wrapper.element).toMatchSnapshot() | ||
}) | ||
|
||
it('displays the number of messages', async () => { | ||
await wrapper.setProps({ numberOfMessages: 1 }) | ||
expect(wrapper.text()).toContain('1') | ||
await wrapper.setProps({ numberOfMessages: 5 }) | ||
expect(wrapper.text()).toContain('5') | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { mount } from '@vue/test-utils' | ||
import { describe, it, expect, beforeEach, afterEach } from 'vitest' | ||
|
||
import NewsIndicator from './NewsIndicator.vue' | ||
|
||
describe('LogoImage', () => { | ||
const Wrapper = () => { | ||
return mount(NewsIndicator) | ||
} | ||
|
||
let wrapper: ReturnType<typeof Wrapper> | ||
|
||
beforeEach(() => { | ||
wrapper = Wrapper() | ||
}) | ||
|
||
afterEach(() => { | ||
wrapper.unmount() | ||
}) | ||
|
||
it('renders', () => { | ||
expect(wrapper.element).toMatchSnapshot() | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.