1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2025-11-29 22:48:28 +02:00

re-applying the title and caption change

This commit is contained in:
gras
2024-04-04 23:53:07 +02:00
parent ac56bff769
commit 0f03c22967
7 changed files with 102 additions and 1 deletions

View File

@@ -35,6 +35,19 @@ describe('MetadataLoader', () => {
expect(Utils.clone(data)).to.be.deep.equal(expected);
});
it('should load png with description', async () => {
const data = await MetadataLoader.loadPhotoMetadata(path.join(__dirname, '/../../../assets/title_caption/description.png'));
const expected = require(path.join(__dirname, '/../../../assets/title_caption/description.json'));
expect(Utils.clone(data)).to.be.deep.equal(expected);
});
it('should load image with metadata saved by digikam', async () => {
const data = await MetadataLoader.loadPhotoMetadata(path.join(__dirname, '/../../../assets/title_caption/digikam.jpg'));
const expected = require(path.join(__dirname, '/../../../assets/title_caption/digikam.json'));
expect(Utils.clone(data)).to.be.deep.equal(expected);
});
it('should load jpg', async () => {
const data = await MetadataLoader.loadPhotoMetadata(path.join(__dirname, '/../../../assets/test image öüóőúéáű-.,.jpg'));
const expected = require(path.join(__dirname, '/../../../assets/test image öüóőúéáű-.,.json'));