mirror of
https://github.com/thumbsup/thumbsup
synced 2024-11-11 07:10:26 +00:00
a5f97ef5c8
Fixes #204
26 lines
792 B
JavaScript
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()
|
|
})
|
|
})
|
|
})
|