2
0
mirror of https://github.com/thumbsup/thumbsup synced 2024-11-11 07:10:26 +00:00
thumbsup/test/integration/integration-picasa.spec.js
2021-03-08 23:37:08 +01:00

26 lines
792 B
JavaScript

const should = require('should/as-function')
const IntegrationTest = require('./integration-test')
const fixtures = require('../fixtures')
describe('Integration: picasa', function () {
this.slow(5000)
this.timeout(5000)
beforeEach(IntegrationTest.before)
afterEach(IntegrationTest.after)
it('reads a picasa.ini file', function (done) {
const integration = new IntegrationTest({
'input/folder/IMG_0001.jpg': fixtures.fromDisk('photo.jpg'),
'input/folder/picasa.ini': '[IMG_0001.jpg]\ncaption=Beach'
})
const customOpts = []
integration.run(customOpts, () => {
integration.assertExist(['index.html', 'folder.html'])
const res = integration.parseYaml('folder.html')
should(res.files[0].caption).eql('Beach')
done()
})
})
})