1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2025-07-15 01:24:25 +02:00

fixing date parsing bug

This commit is contained in:
Patrik J. Braun
2019-01-19 10:07:06 +01:00
parent 54781ee667
commit ca33bb1efb
4 changed files with 27 additions and 2 deletions

View File

@ -24,4 +24,11 @@ describe('MetadataLoader', () => {
expect(Utils.clone(data)).to.be.deep.equal(expected);
});
it('should load jpg 2', async () => {
const data = await MetadataLoader.loadPhotoMetadata(path.join(__dirname, '/../../assets/old_photo.jpg'));
const expected = require(path.join(__dirname, '/../../assets/old_photo.json'));
expect(Utils.clone(data)).to.be.deep.equal(expected);
});
});