Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
tachibana-shin committed Aug 10, 2023
1 parent c2c03e7 commit 3c453f1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 13 deletions.
12 changes: 8 additions & 4 deletions src/logic/some-limit.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,14 @@ describe("someLimit", () => {
it("should stop if true value", async () => {
const sources = [vi.fn(), vi.fn()]

someLimit(sources , val => {
val()
return true
}, 1)
someLimit(
sources,
(val) => {
val()
return true
},
1
)

expect(sources[0].mock.calls.length).toBe(1)
expect(sources[1].mock.calls.length).toBe(0)
Expand Down
24 changes: 15 additions & 9 deletions src/pages/truyen-tranh/[zlug]/[epName]/[epId].vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,21 @@ meta:
@click="
data &&
currentEpisode?.value &&
IDMStore.download({
path: `/truyen-tranh/${zlug}/${epName}/${epId}`,
manga_id: data.uid,
manga_name: data.name,
manga_image: data.image,
ep_id: data.ep_id,
ep_name: currentEpisode.value.name,
pages,
})
pages &&
IDMStore.download(
{
path: `/truyen-tranh/${zlug}`,
manga_id: data.uid,
manga_name: data.name,
manga_image: data.image,
},
{
path: `/truyen-tranh/${zlug}/${epName}/${epId}`,
ep_id: data.ep_id,
ep_name: currentEpisode.value.name,
pages: pages.slice(0),
}
)
"
>
<Icon icon="solar:download-minimalistic-broken" class="size-1.5em" />
Expand Down

0 comments on commit 3c453f1

Please sign in to comment.