[READ-ONLY] Mirror of https://github.com/FoxxMD/multi-scrobbler. Scrobble plays from multiple sources to multiple clients docs.multi-scrobbler.app
deezer docker jellyfin koito lastfm listenbrainz maloja mopidy mpris music music-assistant plex scrobble self-hosted spotify subsonic tautulli youtube-music
0

Configure Feed

Select the types of activity you want to include in your feed.

test: fix/workaround tests for new transformrule assumptions

FoxxMD (Sep 16, 2025, 3:27 PM UTC) 70bb3040 d9e71f67

+21 -18
+1 -1
src/backend/tests/component/component.test.ts
··· 30 30 31 31 beforeEach(function() { 32 32 component.config = {}; 33 - component.transformRules = undefined; 33 + component.transformRules = {}; 34 34 }); 35 35 36 36 describe('Transform Config Parsing', function() {
+20 -17
src/backend/tests/scrobbler/scrobblers.test.ts
··· 567 567 //testScrobbler.initScrobbleMonitoring().catch(console.error); 568 568 }); 569 569 570 - it('Transforms play before queue when preCompare is present', async function() { 571 - testScrobbler.config.options = { 572 - playTransform: { 573 - preCompare: { 574 - title: [ 575 - 'cool' 576 - ] 577 - } 578 - } 579 - } 580 - testScrobbler.buildTransformRules(); 581 - const newScrobble = generatePlay({ 582 - track: 'my cool track' 583 - }); 584 - testScrobbler.queueScrobble(newScrobble, 'test'); 585 - expect(testScrobbler.queuedScrobbles[0].play.data.track).is.eq('my track'); 586 - }); 570 + // TODO need to find a better way to detect this 571 + // since we are now doing it in the processing loop instead of before queue 572 + 573 + // it('Transforms play before queue when preCompare is present', async function() { 574 + // testScrobbler.config.options = { 575 + // playTransform: { 576 + // preCompare: { 577 + // title: [ 578 + // 'cool' 579 + // ] 580 + // } 581 + // } 582 + // } 583 + // testScrobbler.buildTransformRules(); 584 + // const newScrobble = generatePlay({ 585 + // track: 'my cool track' 586 + // }); 587 + // testScrobbler.queueScrobble(newScrobble, 'test'); 588 + // expect(testScrobbler.queuedScrobbles[0].play.data.track).is.eq('my track'); 589 + // }); 587 590 588 591 it('Transforms play on scrobble when postCompare is present', async function() { 589 592 testScrobbler.config.options = {