Skip to content

Commit f2147b2

Browse files
committed
fix: improve test titles
1 parent b20357a commit f2147b2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/http-data-source.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ test('Should be able to pass query params', async (t) => {
235235
t.deepEqual(response.body, { name: 'foo' })
236236
})
237237

238-
test('Should error', async (t) => {
238+
test('Should error on HTTP errors > 299', async (t) => {
239239
t.plan(2)
240240

241241
const path = '/'
@@ -458,7 +458,7 @@ test('Should be possible to pass a request context', async (t) => {
458458
await dataSource.getFoo()
459459
})
460460

461-
test.cb('Should abort request', (t) => {
461+
test.cb('Should abort request when abortController signal is called', (t) => {
462462
t.plan(2)
463463

464464
const path = '/'
@@ -514,7 +514,7 @@ test.cb('Should abort request', (t) => {
514514
abortController.abort()
515515
})
516516

517-
test.cb('Should timeout', (t) => {
517+
test.cb('Should timeout because server does not respond fast enough', (t) => {
518518
t.plan(3)
519519

520520
const path = '/'
@@ -711,7 +711,7 @@ test('Initialize data source with cache and context', async (t) => {
711711
t.deepEqual(response.body, { name: 'foo' })
712712
})
713713

714-
test('Response is cached', async (t) => {
714+
test('Should cache a GET response and respond with the result on subsequent calls', async (t) => {
715715
t.plan(15)
716716

717717
const path = '/'
@@ -817,7 +817,7 @@ test('Response is cached', async (t) => {
817817
})
818818
})
819819

820-
test('Should answer request from from stale-if-error cache on origin error', async (t) => {
820+
test('Should respond with stale-if-error cache on origin error', async (t) => {
821821
t.plan(12)
822822

823823
const path = '/'

0 commit comments

Comments
 (0)