mirror of
https://github.com/FoxxMD/multi-scrobbler.git
synced 2026-09-03 05:10:00 +03:00
test: fix failing tests from np data structure change
This commit is contained in:
@@ -865,7 +865,7 @@ describe('Now Playing', function() {
|
||||
|
||||
const toReport = npScrobbler.nowPlayingFilter(npScrobbler.nowPlayingQueue);
|
||||
|
||||
expect(toReport.play.meta.deviceId).eq(genGroupIdStr(firstPlatform));
|
||||
expect(toReport.player.play.meta.deviceId).eq(genGroupIdStr(firstPlatform));
|
||||
|
||||
});
|
||||
|
||||
@@ -886,7 +886,7 @@ describe('Now Playing', function() {
|
||||
|
||||
const toReport = npScrobbler.nowPlayingFilter(npScrobbler.nowPlayingQueue);
|
||||
|
||||
expect(toReport.play.meta.deviceId).eq(genGroupIdStr(firstPlatform));
|
||||
expect(toReport.player.play.meta.deviceId).eq(genGroupIdStr(firstPlatform));
|
||||
|
||||
});
|
||||
|
||||
@@ -910,7 +910,7 @@ describe('Now Playing', function() {
|
||||
|
||||
const toReport = npScrobbler.nowPlayingFilter(npScrobbler.nowPlayingQueue);
|
||||
|
||||
expect(toReport.play.meta.deviceId).eq(genGroupIdStr(secondPlatform));
|
||||
expect(toReport.player.play.meta.deviceId).eq(genGroupIdStr(secondPlatform));
|
||||
|
||||
});
|
||||
|
||||
@@ -927,7 +927,7 @@ describe('Now Playing', function() {
|
||||
|
||||
const toReport = npScrobbler.nowPlayingFilter(npScrobbler.nowPlayingQueue);
|
||||
|
||||
expect(toReport.play.meta.deviceId).eq(a.play.meta.deviceId);
|
||||
expect(toReport.player.play.meta.deviceId).eq(a.play.meta.deviceId);
|
||||
|
||||
});
|
||||
|
||||
@@ -944,7 +944,7 @@ describe('Now Playing', function() {
|
||||
|
||||
const toReport = npScrobbler.nowPlayingFilter(npScrobbler.nowPlayingQueue);
|
||||
|
||||
expect(toReport.play.meta.deviceId).eq(b.play.meta.deviceId);
|
||||
expect(toReport.player.play.meta.deviceId).eq(b.play.meta.deviceId);
|
||||
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user