Skip to content

Commit

Permalink
add stub for extractFanTralbumData
Browse files Browse the repository at this point in the history
  • Loading branch information
sabjorn committed Nov 20, 2024
1 parent 9f661ba commit f72da2f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ describe("Player", () => {
Object.assign(document.createElement("div"), { id: "unique-id-2" })
);
player.getTralbumDetails = sinon.stub().resolves(mockResponse);
player.extractFanTralbumData = sinon.stub().resolves({
fan_tralbum_data: {
is_purchased: true,
part_of_purchased_album: false
}
});

createDomNodes(`
<table class="track_list track_table" id="track_table">
Expand Down

0 comments on commit f72da2f

Please sign in to comment.