Skip to content

Commit

Permalink
refactor test cases for image display commands to improve clarity and…
Browse files Browse the repository at this point in the history
… consistency
  • Loading branch information
BlackRam-oss committed Nov 18, 2024
1 parent 268ae76 commit 5cde8f8
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions tests/pixivn-features.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ test('show image', async () => {
{
type: "oprationtoconvert",
values: [
"show image bg '/image.png' dissolve",
"show image bg '/image.png' with dissolve",
],
},
],
Expand All @@ -122,7 +122,7 @@ test('show image', async () => {
{
type: "oprationtoconvert",
values: [
"show image bg /image.png dissolve duration 3",
"show image bg /image.png with dissolve duration 3",
],
},
],
Expand All @@ -133,7 +133,7 @@ test('show image', async () => {
{
type: "oprationtoconvert",
values: [
"show image bg `/image.png` dissolve duration ",
"show image bg `/image.png` x 10 with dissolve duration ",
{
type: "ifelse",
condition: {
Expand All @@ -149,8 +149,8 @@ test('show image', async () => {
" ",
{
type: "value",
storageType: "storage",
storageOperationType: "get",
storageType: "storage",
key: "duration",
},
" ",
Expand Down Expand Up @@ -268,6 +268,9 @@ test('show image', async () => {
duration: "ifelse" as any,
},
},
props: {
x: 10,
},
},
],
goNextStep: true,
Expand All @@ -287,9 +290,9 @@ VAR duration = 3
=== start
#show image bg /image.png
# show image "bg 2 alice" /image2.png
# show image bg '/image.png' dissolve
#show image bg /image.png dissolve duration 3
#show image bg \`/image.png\` dissolve duration {start: {duration} | {duration| 0 == 0} }
# show image bg '/image.png' with dissolve
#show image bg /image.png with dissolve duration 3
#show image bg \`/image.png\` x 10 with dissolve duration {start: {duration} | {duration| 0 == 0} }
hello
-> DONE
`);
Expand Down

0 comments on commit 5cde8f8

Please sign in to comment.