Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit a94855b

Browse files
committed
tests: use destructuring in a test
1 parent 78141ec commit a94855b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/in-mem/http-client-backend.service.spec.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,7 @@ describe('HttpClient Backend Service', () => {
294294
http.get<Hero[]>('api/nobodies'),
295295
http.get<Hero[]>('api/stringers')
296296
).pipe(
297-
map(results => {
298-
const [h, n, s] = results;
297+
map(([h, n, s]) => {
299298
return {
300299
heroes: h.length as number,
301300
nobodies: n.length as number,
@@ -442,8 +441,7 @@ describe('HttpClient Backend Service', () => {
442441
http.get<Hero[]>('api/stringers'),
443442
http.get<Hero[]>('api/villains')
444443
).pipe(
445-
map(results => {
446-
const [h, n, s, v] = results;
444+
map(([h, n, s, v]) => {
447445
return {
448446
heroes: h.length as number,
449447
nobodies: n.length as number,

0 commit comments

Comments
 (0)