Skip to content

Commit 8de1c04

Browse files
committed
add unit test
1 parent 3f56677 commit 8de1c04

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/unit/s3middleware/tagging.spec.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@ describe('areTagsValid', () => {
6868
assert.strictEqual(result, false);
6969
});
7070

71+
it('should return true for tags with empty Value', () => {
72+
const validTags = [
73+
{ Key: 'key1', Value: '' }
74+
];
75+
const result = areTagsValid(validTags);
76+
assert.strictEqual(result, true);
77+
});
78+
7179
it('should return false for tags with duplicate keys', () => {
7280
const invalidTags = [
7381
{ Key: 'key1', Value: 'value1' },

0 commit comments

Comments
 (0)