|
|
|
@ -15,9 +15,9 @@ module.exports = function (_, dir, next, gm) { |
|
|
|
|
|
|
|
|
|
var args = m.args(); |
|
|
|
|
assert.equal('convert', args[0]); |
|
|
|
|
assert.equal('/Users/aaronheckmann/test/gm/gm/test/../examples/imgs/lost.png',args[1]); |
|
|
|
|
assert.equal('/Users/aaronheckmann/test/gm/gm/test/../examples/imgs/original.jpg',args[2]); |
|
|
|
|
assert.equal('/Users/aaronheckmann/test/gm/gm/test/../examples/imgs/original.jpg',args[3]); |
|
|
|
|
assert.ok(/examples\/imgs\/lost\.png$/.test(args[1])); |
|
|
|
|
assert.ok(/examples\/imgs\/original\.jpg$/,args[2]); |
|
|
|
|
assert.ok(/examples\/imgs\/original\.jpg$/,args[3]); |
|
|
|
|
assert.equal('-background',args[4]); |
|
|
|
|
assert.equal('#222',args[5]); |
|
|
|
|
assert.equal('-append',args[6]); |
|
|
|
@ -46,8 +46,8 @@ function horizontal (dir, next, gm) { |
|
|
|
|
|
|
|
|
|
var args = m.args(); |
|
|
|
|
assert.equal('convert', args[0]); |
|
|
|
|
assert.equal('/Users/aaronheckmann/test/gm/gm/test/../examples/imgs/original.jpg',args[1]); |
|
|
|
|
assert.equal('/Users/aaronheckmann/test/gm/gm/test/../examples/imgs/lost.png',args[2]); |
|
|
|
|
assert.ok(/examples\/imgs\/original\.jpg$/.test(args[1])); |
|
|
|
|
assert.ok(/examples\/imgs\/lost\.png$/.test(args[2])); |
|
|
|
|
assert.equal('+append',args[3]); |
|
|
|
|
assert.equal('-',args[4]); |
|
|
|
|
|
|
|
|
|