 testBoth(
 	'should list files from a raspberrypi image'
 	(input) ->
-		imagefs.listDirectory(input).then (contents) ->
+		imagefs.listDirectory(input)
+		.then (contents) ->
 			utils.expect contents, [
 				'ds1307-rtc-overlay.dtb',
 				'hifiberry-amp-overlay.dtb',

	'should replace a file in a raspberry pi partition'
	(output) ->
		inputStream = fs.createReadStream(LOREM)
		imagefs.write(output, inputStream).then(utils.waitStream).then ->
			imagefs.replace(output, 'Lorem', 'Elementum').then(utils.waitStream).then ->
				imagefs.read(output).then(utils.extract).then (contents) ->
					utils.expect(contents, 'Elementum ipsum dolor sit amet\n')
	{
		image: RASPBERRYPI
		partition:

testBoth(
	'should read a config.json from a raspberrypi'
	(input) ->
		imagefs.read(input)
		.then(utils.extract)
		.then (contents) ->
			utils.expect(JSON.parse(contents), files.raspberrypi['config.json'])
	{
		image: RASPBERRYPI
