Skip to content

Commit c91f196

Browse files
authored
fix: empty boostablebosses list (#411)
1 parent 30cb2f7 commit c91f196

File tree

3 files changed

+736
-705
lines changed

3 files changed

+736
-705
lines changed

src/TibiaBoostableBossesOverview.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func TibiaBoostableBossesOverviewImpl(BoxContentHTML string, url string) (Boosta
3333
endBodyIndexer = `</body>`
3434

3535
todayChecker = `Today's boosted boss: `
36-
bossesChecker = `<div class="CaptionContainer">`
36+
bossesChecker = `<div class="CaptionContainer" >`
3737

3838
todayBossIndexer = `title="` + todayChecker
3939
endTodayBossIndexer = `" src="`
@@ -44,7 +44,7 @@ func TibiaBoostableBossesOverviewImpl(BoxContentHTML string, url string) (Boosta
4444
bossesImgIndexer = `https://static.tibia.com/images/library/`
4545
endBossesImgIndexer = `"`
4646

47-
bossesNameIndexer = `border="0" /> <div>`
47+
bossesNameIndexer = `border=0 /> <div>`
4848
endBossesNameIndexer = `</div>`
4949
)
5050

src/TibiaBoostableBossesOverview_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func TestBoostableBossesOverview(t *testing.T) {
2727
information := boostableBossesJson.Information
2828

2929
assert.Equal("https://www.tibia.com/library/?subtopic=boostablebosses", information.TibiaURLs[0])
30-
assert.Equal(95, len(bosses))
30+
assert.Equal(98, len(bosses))
3131
assert.Equal("Ragiaz", boosted.Name)
3232
assert.Equal(
3333
"https://static.tibia.com/images/global/header/monsters/ragiaz.gif",
@@ -41,31 +41,31 @@ func TestBoostableBossesOverview(t *testing.T) {
4141
imageURL string
4242
}{
4343
{
44-
idx: 20,
44+
idx: 21,
4545
name: "Gnomevil",
4646
featured: false,
4747
imageURL: "https://static.tibia.com/images/library/gnomehorticulist.gif",
4848
},
4949
{
50-
idx: 25,
50+
idx: 26,
5151
name: "Goshnar's Malice",
5252
featured: false,
5353
imageURL: "https://static.tibia.com/images/library/goshnarsmalice.gif",
5454
},
5555
{
56-
idx: 47,
56+
idx: 49,
5757
name: "Ragiaz",
5858
featured: true,
5959
imageURL: "https://static.tibia.com/images/library/ragiaz.gif",
6060
},
6161
{
62-
idx: 55,
62+
idx: 57,
6363
name: "Sharpclaw",
6464
featured: false,
6565
imageURL: "https://static.tibia.com/images/library/sharpclaw.gif",
6666
},
6767
{
68-
idx: 78,
68+
idx: 80,
6969
name: "The Pale Worm",
7070
featured: false,
7171
imageURL: "https://static.tibia.com/images/library/paleworm.gif",

0 commit comments

Comments
 (0)