mirror of
https://github.com/lovell/sharp.git
synced 2025-08-24 05:31:40 +02:00
Tests: remove extraneous use of toColourspace
This commit is contained in:
parent
cd337e4de3
commit
8607ff2f4a
@ -82,7 +82,6 @@ describe('Image channel extraction', function () {
|
|||||||
const output = fixtures.path('output.extract-alpha-2-channel.png');
|
const output = fixtures.path('output.extract-alpha-2-channel.png');
|
||||||
sharp(fixtures.inputPngWithGreyAlpha)
|
sharp(fixtures.inputPngWithGreyAlpha)
|
||||||
.extractChannel('alpha')
|
.extractChannel('alpha')
|
||||||
.toColourspace('b-w')
|
|
||||||
.toFile(output, function (err, info) {
|
.toFile(output, function (err, info) {
|
||||||
if (err) throw err;
|
if (err) throw err;
|
||||||
assert.strictEqual(1, info.channels);
|
assert.strictEqual(1, info.channels);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user