@@ -34,6 +34,8 @@ import {
3434 PROJECT_DETAIL_SINGLE_VALUES , PROJECT_DETAIL_SPECIFIC_VALUES ,
3535 PROJECT_DETAIL_UNSPECIFIED_VALUES , PROJECT_PORTAL_SINGLE_VALUE_SINGLE_INTEGRATION_OBJECT
3636} from "./hca-project-mapper.mock" ;
37+ import { GenusSpecies } from "../shared/genus-species.model" ;
38+ import { SpeciesMatrixUrls } from "../shared/species-matrix-urls.model" ;
3739
3840describe ( "HCAProjectComponent" , ( ) => {
3941
@@ -64,7 +66,15 @@ describe("HCAProjectComponent", () => {
6466 const HEADING_EXTERNAL_RESOURCES = "External Resources" ;
6567
6668 // Project matrix urls
67- const PROJECT_DETAIL_PROJECT_MATRIX_URLS = new ProjectMatrixUrls ( "2cd14cf5-f8e0-4c97-91a2-9e8957f41ea8" , "https://dev.data.humancellatlas.org/project-assets/project-matrices/537f5501-a964-4ade-91c8-7bd4a23b049d.csv.zip" , "https://dev.data.humancellatlas.org/project-assets/project-matrices/537f5501-a964-4ade-91c8-7bd4a23b049d.loom" , "https://dev.data.humancellatlas.org/project-assets/project-matrices/537f5501-a964-4ade-91c8-7bd4a23b049d.mtx.zip" ) ;
69+ const SPECIES_URLS_HOMO_SAPIENS = new SpeciesMatrixUrls (
70+ "1234" ,
71+ "https://test.com/1234.homo_sapiens.csv.zip" ,
72+ "https://test.com/1234.homo_sapiens.loom" ,
73+ "https://test.com/1234.homo_sapiens.mtx.zip"
74+ ) ;
75+ const PROJECT_MATRIX_URLS_SINGLE_SPECIES = new ProjectMatrixUrls ( "1234" , new Map ( [
76+ [ GenusSpecies . HOMO_SAPIENS , SPECIES_URLS_HOMO_SAPIENS ]
77+ ] ) ) ;
6878
6979 // Project details
7080 const PROJECT_LABEL_DONOR_COUNT = "Donor Count" ;
@@ -188,7 +198,7 @@ describe("HCAProjectComponent", () => {
188198 testStore . pipe
189199 . and . returnValues (
190200 of ( PROJECT_DETAIL_SINGLE_VALUES ) , // selected project detail
191- of ( PROJECT_DETAIL_PROJECT_MATRIX_URLS ) , // project matrix URLs
201+ of ( PROJECT_MATRIX_URLS_SINGLE_SPECIES ) , // project matrix URLs
192202 of ( [ ] ) , // project ids
193203 of ( [ ] ) // integrations
194204 ) ;
@@ -207,7 +217,7 @@ describe("HCAProjectComponent", () => {
207217 testStore . pipe
208218 . and . returnValues (
209219 of ( PROJECT_DETAIL_SINGLE_VALUES ) , // selected project detail
210- of ( PROJECT_DETAIL_PROJECT_MATRIX_URLS ) , // project matrix URLs
220+ of ( PROJECT_MATRIX_URLS_SINGLE_SPECIES ) , // project matrix URLs
211221 of ( [ ] ) , // project ids
212222 of ( [ ] ) // integrations
213223 ) ;
@@ -226,7 +236,7 @@ describe("HCAProjectComponent", () => {
226236 testStore . pipe
227237 . and . returnValues (
228238 of ( PROJECT_DETAIL_SINGLE_VALUES ) , // selected project detail
229- of ( PROJECT_DETAIL_PROJECT_MATRIX_URLS ) , // project matrix URLs
239+ of ( PROJECT_MATRIX_URLS_SINGLE_SPECIES ) , // project matrix URLs
230240 of ( [ ] ) , // project ids
231241 of ( [ ] ) // integrations
232242 ) ;
@@ -245,7 +255,7 @@ describe("HCAProjectComponent", () => {
245255 testStore . pipe
246256 . and . returnValues (
247257 of ( PROJECT_DETAIL_SINGLE_VALUES ) , // selected project detail
248- of ( PROJECT_DETAIL_PROJECT_MATRIX_URLS ) , // project matrix URLs
258+ of ( PROJECT_MATRIX_URLS_SINGLE_SPECIES ) , // project matrix URLs
249259 of ( [ ] ) , // project ids
250260 of ( [ ] ) // integrations
251261 ) ;
@@ -266,7 +276,7 @@ describe("HCAProjectComponent", () => {
266276 testStore . pipe
267277 . and . returnValues (
268278 of ( PROJECT_DETAIL_SINGLE_VALUES ) , // selected project detail
269- of ( PROJECT_DETAIL_PROJECT_MATRIX_URLS ) , // project matrix URLs
279+ of ( PROJECT_MATRIX_URLS_SINGLE_SPECIES ) , // project matrix URLs
270280 of ( [ ] ) , // project ids
271281 of ( [ ] ) // integrations
272282 ) ;
@@ -285,7 +295,7 @@ describe("HCAProjectComponent", () => {
285295 testStore . pipe
286296 . and . returnValues (
287297 of ( PROJECT_DETAIL_EMPTY_VALUES ) , // selected project detail
288- of ( PROJECT_DETAIL_PROJECT_MATRIX_URLS ) , // project matrix URLs
298+ of ( PROJECT_MATRIX_URLS_SINGLE_SPECIES ) , // project matrix URLs
289299 of ( [ ] ) , // project ids
290300 of ( [ ] ) // integrations
291301 ) ;
@@ -304,7 +314,7 @@ describe("HCAProjectComponent", () => {
304314 testStore . pipe
305315 . and . returnValues (
306316 of ( PROJECT_DETAIL_UNSPECIFIED_VALUES ) , // selected project detail
307- of ( PROJECT_DETAIL_PROJECT_MATRIX_URLS ) , // project matrix URLs
317+ of ( PROJECT_MATRIX_URLS_SINGLE_SPECIES ) , // project matrix URLs
308318 of ( [ ] ) , // project ids
309319 of ( [ ] ) // integrations
310320 ) ;
@@ -323,7 +333,7 @@ describe("HCAProjectComponent", () => {
323333 testStore . pipe
324334 . and . returnValues (
325335 of ( PROJECT_DETAIL_SINGLE_VALUES ) , // selected project detail
326- of ( PROJECT_DETAIL_PROJECT_MATRIX_URLS ) , // project matrix URLs
336+ of ( PROJECT_MATRIX_URLS_SINGLE_SPECIES ) , // project matrix URLs
327337 of ( [ ] ) , // project ids
328338 of ( [ ] ) // integrations
329339 ) ;
@@ -342,7 +352,7 @@ describe("HCAProjectComponent", () => {
342352 testStore . pipe
343353 . and . returnValues (
344354 of ( PROJECT_DETAIL_MULTIPLE_VALUES ) , // selected project detail
345- of ( PROJECT_DETAIL_PROJECT_MATRIX_URLS ) , // project matrix URLs
355+ of ( PROJECT_MATRIX_URLS_SINGLE_SPECIES ) , // project matrix URLs
346356 of ( [ ] ) , // project ids
347357 of ( [ ] ) // integrations
348358 ) ;
@@ -361,7 +371,7 @@ describe("HCAProjectComponent", () => {
361371 testStore . pipe
362372 . and . returnValues (
363373 of ( PROJECT_DETAIL_SINGLE_VALUES ) , // selected project detail
364- of ( PROJECT_DETAIL_PROJECT_MATRIX_URLS ) , // project matrix URLs
374+ of ( PROJECT_MATRIX_URLS_SINGLE_SPECIES ) , // project matrix URLs
365375 of ( [ ] ) , // project ids
366376 of ( [ ] ) // integrations
367377 ) ;
@@ -380,7 +390,7 @@ describe("HCAProjectComponent", () => {
380390 testStore . pipe
381391 . and . returnValues (
382392 of ( PROJECT_DETAIL_SPECIFIC_VALUES ) , // selected project detail
383- of ( PROJECT_DETAIL_PROJECT_MATRIX_URLS ) , // project matrix URLs
393+ of ( PROJECT_MATRIX_URLS_SINGLE_SPECIES ) , // project matrix URLs
384394 of ( [ ] ) , // project ids
385395 of ( [ ] ) // integrations
386396 ) ;
@@ -399,7 +409,7 @@ describe("HCAProjectComponent", () => {
399409 testStore . pipe
400410 . and . returnValues (
401411 of ( PROJECT_DETAIL_EMPTY_VALUES ) , // selected project detail
402- of ( PROJECT_DETAIL_PROJECT_MATRIX_URLS ) , // project matrix URLs
412+ of ( PROJECT_MATRIX_URLS_SINGLE_SPECIES ) , // project matrix URLs
403413 of ( [ ] ) , // project ids
404414 of ( [ ] ) // integrations
405415 ) ;
@@ -418,7 +428,7 @@ describe("HCAProjectComponent", () => {
418428 testStore . pipe
419429 . and . returnValues (
420430 of ( PROJECT_DETAIL_UNSPECIFIED_VALUES ) , // selected project detail
421- of ( PROJECT_DETAIL_PROJECT_MATRIX_URLS ) , // project matrix URLs
431+ of ( PROJECT_MATRIX_URLS_SINGLE_SPECIES ) , // project matrix URLs
422432 of ( [ ] ) , // project ids
423433 of ( [ ] ) // integrations
424434 ) ;
@@ -437,7 +447,7 @@ describe("HCAProjectComponent", () => {
437447 testStore . pipe
438448 . and . returnValues (
439449 of ( PROJECT_DETAIL_SINGLE_VALUES ) , // selected project detail
440- of ( PROJECT_DETAIL_PROJECT_MATRIX_URLS ) , // project matrix URLs
450+ of ( PROJECT_MATRIX_URLS_SINGLE_SPECIES ) , // project matrix URLs
441451 of ( [ ] ) , // project ids
442452 of ( [ ] ) // integrations
443453 ) ;
@@ -455,7 +465,7 @@ describe("HCAProjectComponent", () => {
455465 testStore . pipe
456466 . and . returnValues (
457467 of ( PROJECT_DETAIL_MULTIPLE_VALUES ) , // selected project detail
458- of ( PROJECT_DETAIL_PROJECT_MATRIX_URLS ) , // project matrix URLs
468+ of ( PROJECT_MATRIX_URLS_SINGLE_SPECIES ) , // project matrix URLs
459469 of ( [ ] ) , // project ids
460470 of ( [ ] ) // integrations
461471 ) ;
@@ -474,7 +484,7 @@ describe("HCAProjectComponent", () => {
474484 testStore . pipe
475485 . and . returnValues (
476486 of ( PROJECT_DETAIL_SINGLE_VALUES ) , // selected project detail
477- of ( PROJECT_DETAIL_PROJECT_MATRIX_URLS ) , // project matrix URLs
487+ of ( PROJECT_MATRIX_URLS_SINGLE_SPECIES ) , // project matrix URLs
478488 of ( [ ] ) , // project ids
479489 of ( [ ] ) // integrations
480490 ) ;
@@ -493,7 +503,7 @@ describe("HCAProjectComponent", () => {
493503 testStore . pipe
494504 . and . returnValues (
495505 of ( PROJECT_DETAIL_UNSPECIFIED_VALUES ) , // selected project detail
496- of ( PROJECT_DETAIL_PROJECT_MATRIX_URLS ) , // project matrix URLs
506+ of ( PROJECT_MATRIX_URLS_SINGLE_SPECIES ) , // project matrix URLs
497507 of ( [ ] ) , // project ids
498508 of ( [ ] ) // integrations
499509 ) ;
@@ -512,7 +522,7 @@ describe("HCAProjectComponent", () => {
512522 testStore . pipe
513523 . and . returnValues (
514524 of ( PROJECT_DETAIL_SINGLE_VALUES ) , // selected project detail
515- of ( PROJECT_DETAIL_PROJECT_MATRIX_URLS ) , // project matrix URLs
525+ of ( PROJECT_MATRIX_URLS_SINGLE_SPECIES ) , // project matrix URLs
516526 of ( [ ] ) , // project ids
517527 of ( [ ] ) // integrations
518528 ) ;
@@ -533,7 +543,7 @@ describe("HCAProjectComponent", () => {
533543 testStore . pipe
534544 . and . returnValues (
535545 of ( PROJECT_DETAIL_SINGLE_VALUES ) , // selected project detail
536- of ( PROJECT_DETAIL_PROJECT_MATRIX_URLS ) , // project matrix URLs
546+ of ( PROJECT_MATRIX_URLS_SINGLE_SPECIES ) , // project matrix URLs
537547 of ( [ ] ) , // project ids
538548 of ( [ ] ) // integrations
539549 ) ;
@@ -552,7 +562,7 @@ describe("HCAProjectComponent", () => {
552562 testStore . pipe
553563 . and . returnValues (
554564 of ( PROJECT_DETAIL_SINGLE_VALUES ) , // selected project detail
555- of ( PROJECT_DETAIL_PROJECT_MATRIX_URLS ) , // project matrix URLs
565+ of ( PROJECT_MATRIX_URLS_SINGLE_SPECIES ) , // project matrix URLs
556566 of ( [ ] ) , // project ids
557567 of ( PROJECT_PORTAL_SINGLE_VALUE_SINGLE_INTEGRATION_OBJECT ) // integrations
558568 ) ;
@@ -573,7 +583,7 @@ describe("HCAProjectComponent", () => {
573583 testStore . pipe
574584 . and . returnValues (
575585 of ( PROJECT_DETAIL_SINGLE_VALUES ) , // selected project detail
576- of ( PROJECT_DETAIL_PROJECT_MATRIX_URLS ) , // project matrix URLs
586+ of ( PROJECT_MATRIX_URLS_SINGLE_SPECIES ) , // project matrix URLs
577587 of ( [ ] ) , // project ids
578588 of ( [ ] ) // integrations
579589 ) ;
0 commit comments