Skip to content

Commit

Permalink
feat(assets): add edition complexes for AWG II/2a
Browse files Browse the repository at this point in the history
* feature/complexes

* fix(assets): fix order and naming of complexes

* fix(assets): fix star numbers

* fix(edition): fix star numbers

---------

Co-authored-by: musicEnfanthen <[email protected]>
Co-authored-by: awg-admin <[email protected]>
  • Loading branch information
3 people authored Feb 5, 2025
1 parent 1472323 commit 1e1b198
Show file tree
Hide file tree
Showing 5 changed files with 560 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ describe('EditionComplexComponent (DONE)', () => {
const mnrPlusComplex = new EditionComplex(
{
title: 'Test M* Complex',
catalogueType: 'MNR_PLUS',
catalogueType: 'MNR_STAR',
catalogueNumber: '100',
},
{
Expand All @@ -442,7 +442,7 @@ describe('EditionComplexComponent (DONE)', () => {
},
{ series: '1', section: '5' }
);
expectedSelectedEditionComplexId = 'mPlus100';
expectedSelectedEditionComplexId = 'm_star100';

// Spy on the static method and provide a custom implementation
spyOn(EditionComplexesService, 'getEditionComplexById').and.callFake((id: string) => {
Expand Down
4 changes: 2 additions & 2 deletions src/app/views/edition-view/edition-route-constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export class EDITION_CATALOGUE_TYPE_CONSTANTS {
/**
* The route constant for an extended Moldenhauer number (AWG-ID).
*/
static readonly MNR_PLUS: EditionRouteConstant = {
route: '/m_plus',
static readonly MNR_STAR: EditionRouteConstant = {
route: '/m_star',
short: 'M*',
full: 'Moldenhauer-Nr. (AWG-ID)',
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ describe('EditionComplexesService (DONE)', () => {
const testComplex = new EditionComplex(
{
title: 'Test M Complex',
catalogueType: 'MNR_PLUS',
catalogueType: 'MNR_STAR',
catalogueNumber: '100',
},
{
Expand All @@ -214,7 +214,7 @@ describe('EditionComplexesService (DONE)', () => {
},
{ series: '1', section: '5' }
);
const testComplexId = 'm_plus100';
const testComplexId = 'm_star100';
const expectedList = { [testComplexId.toUpperCase()]: testComplex };
EditionComplexesService.setEditionComplexesList(expectedList);

Expand Down
Loading

0 comments on commit 1e1b198

Please sign in to comment.