Skip to content

Commit

Permalink
adding more test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
etnoy committed Oct 9, 2024
1 parent 0817d7d commit c1b3ed0
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion e2e/src/cli/specs/upload.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,23 @@ const tests: Test[] = [
},
},
{
test: 'should support paths with *',
test: 'should support paths with an asterisk',
paths: [`/photos\*/image1.jpg`],
files: {
'/photos*/image1.jpg': true,
'/photos*/image2.jpg': false,
'/images/image3.jpg': false,
},
},
{
test: 'should support paths with a space',
paths: [`/my photos/image1.jpg`],
files: {
'/my photos/image1.jpg': true,
'/my photos/image2.jpg': false,
'/images/image3.jpg': false,
},
},
{
test: 'should support paths with a single quote',
paths: [`/photos\'/image1.jpg`],
Expand All @@ -38,6 +47,15 @@ const tests: Test[] = [
'/images/image3.jpg': false,
},
},
{
test: 'should support paths with a double quote',
paths: [`/photos\"/image1.jpg`],
files: {
'/photos"/image1.jpg': true,
'/photos"/image2.jpg': false,
'/images/image3.jpg': false,
},
},
{
test: 'should support paths with a comma',
paths: [`/photos, eh/image1.jpg`],
Expand All @@ -56,6 +74,15 @@ const tests: Test[] = [
'/images/image3.jpg': false,
},
},
{
test: 'should support paths with a closing brace',
paths: [`/photos\}/image1.jpg`],
files: {
'/photos}/image1.jpg': true,
'/photos}/image2.jpg': false,
'/images/image3.jpg': false,
},
},
];

describe(`immich upload`, () => {
Expand Down

0 comments on commit c1b3ed0

Please sign in to comment.