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

fixing video length bug

This commit is contained in:
Patrik J. Braun
2019-02-15 16:19:30 -05:00
parent cf69611831
commit 06dd15a0ab
5 changed files with 20 additions and 2 deletions

View File

@ -31,4 +31,12 @@ describe('MetadataLoader', () => {
expect(Utils.clone(data)).to.be.deep.equal(expected);
});
it('should load mp4', async () => {
const data = await MetadataLoader.loadVideoMetadata(path.join(__dirname, '/../../assets/video.mp4'));
const expected = require(path.join(__dirname, '/../../assets/video.json'));
expect(Utils.clone(data)).to.be.deep.equal(expected);
});
});