voluptasquisquam
Version:
Image processing and manipulation in JavaScript
14 lines (9 loc) • 343 B
JavaScript
import {Image} from 'test/common';
import 'should';
describe('check sum', function () {
it('should yield the correct array', function () {
let image = new Image(1, 2, [230, 83, 120, 255, 100, 140, 13, 1]);
image.sum.should.eql([330, 223, 133, 256]);
image.getSum().should.eql([330, 223, 133, 256]);
});
});