Skip to content

Commit

Permalink
update test assertion descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
achou11 committed Jan 23, 2024
1 parent d3af758 commit 7f5cab7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test-e2e/manager-fastify-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ test('retrieving blobs using url', async (t) => {
type: 'photo',
variant: 'original',
})
}, 'getting blob url fails if manager.startMediaServer() has not been called yet')
}, 'getting blob url fails if fastifyController.start() has not been called yet')

clock.tick(100_000)
await exceptionPromise1
Expand All @@ -128,7 +128,7 @@ test('retrieving blobs using url', async (t) => {

st.ok(
new URL(blobUrl),
'retrieving url based on media server resolves after starting it'
'retrieving url based on HTTP server resolves after starting it'
)

const response = await fetch(blobUrl)
Expand All @@ -149,7 +149,7 @@ test('retrieving blobs using url', async (t) => {

st.ok(
new URL(blobUrl),
'retrieving url based on media server resolves after starting it'
'retrieving url based on HTTP server resolves after starting it'
)

const response = await fetch(blobUrl)
Expand All @@ -176,7 +176,7 @@ test('retrieving blobs using url', async (t) => {
type: 'photo',
variant: 'original',
})
}, 'getting url after manager.stop() has been called fails')
}, 'getting url after fastifyController.stop() has been called fails')
clock.tick(100_000)
await exceptionPromise2
})
Expand Down Expand Up @@ -204,7 +204,7 @@ test('retrieving icons using url', async (t) => {
pixelDensity: 1,
size: 'small',
})
}, 'getting icon url fails if manager.startMediaServer() has not been called yet')
}, 'getting icon url fails if fastifyController.start() has not been called yet')

clock.tick(100_000)
await exceptionPromise1
Expand All @@ -222,7 +222,7 @@ test('retrieving icons using url', async (t) => {

st.ok(
new URL(iconUrl),
'retrieving url based on media server resolves after starting it'
'retrieving url based on HTTP server resolves after starting it'
)

const response = await fetch(iconUrl)
Expand Down Expand Up @@ -253,7 +253,7 @@ test('retrieving icons using url', async (t) => {

st.ok(
new URL(iconUrl),
'retrieving url based on media server resolves after starting it'
'retrieving url based on HTTP server resolves after starting it'
)

const response = await fetch(iconUrl)
Expand All @@ -276,7 +276,7 @@ test('retrieving icons using url', async (t) => {
pixelDensity: 1,
size: 'small',
})
}, 'getting url after manager.stop() has been called fails')
}, 'getting url after fastifyController.stop() has been called fails')
clock.tick(100_000)
await exceptionPromise2
})
Expand Down

0 comments on commit 7f5cab7

Please sign in to comment.