We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 076c9be commit 96901eaCopy full SHA for 96901ea
tests/unit/MessageDisplay.spec.js
@@ -5,11 +5,11 @@ import flushPromises from 'flush-promises'
5
6
jest.mock('@/services/axios')
7
8
-describe('MessageDisplay', () => {
9
- beforeEach(() => {
10
- jest.clearAllMocks()
11
- })
+beforeEach(() => {
+ jest.clearAllMocks()
+})
12
+describe('MessageDisplay', () => {
13
it('Calls getMessage once and displays message', async () => {
14
const mockMessage = 'Hello from the db'
15
getMessage.mockResolvedValueOnce({ text: mockMessage })
0 commit comments