mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-12 03:10:03 +01:00
Added Eslint and husky (#1062)
This commit is contained in:
@@ -8,15 +8,15 @@ module.exports = function Dynamic(options, UI, util) {
|
||||
|
||||
var step = this;
|
||||
|
||||
if (this.getPreviousStep().options.name != "invert") throw new Error("getPreviousStep not working");
|
||||
if (this.getNextStep().options.name != "invert") throw new Error("getNextStep not working");
|
||||
if (this.getInput(0) != this.getOutput(-1)) throw new Error("getInput and getOuput now working")
|
||||
if (this.getFormat() != "jpeg") throw new Error("getFormat not working");
|
||||
if (this.getOptions().name != "test") throw new Error("getOptions not working");
|
||||
this.setOptions({ name: "test-1" });
|
||||
if (this.getOptions().name != "test-1") throw new Error("setOptions not working not working");
|
||||
this.getHeight(((h) => { if (h != 16) throw new Error("getHeight not working") }));
|
||||
this.getWidth((w) => { if (w != 16) throw new Error("getWidth not working") });
|
||||
if (this.getPreviousStep().options.name != 'invert') throw new Error('getPreviousStep not working');
|
||||
if (this.getNextStep().options.name != 'invert') throw new Error('getNextStep not working');
|
||||
if (this.getInput(0) != this.getOutput(-1)) throw new Error('getInput and getOuput now working');
|
||||
if (this.getFormat() != 'jpeg') throw new Error('getFormat not working');
|
||||
if (this.getOptions().name != 'test') throw new Error('getOptions not working');
|
||||
this.setOptions({ name: 'test-1' });
|
||||
if (this.getOptions().name != 'test-1') throw new Error('setOptions not working not working');
|
||||
this.getHeight(((h) => { if (h != 16) throw new Error('getHeight not working'); }));
|
||||
this.getWidth((w) => { if (w != 16) throw new Error('getWidth not working'); });
|
||||
|
||||
function output(image, datauri, mimetype) {
|
||||
step.output = input;
|
||||
@@ -29,5 +29,5 @@ module.exports = function Dynamic(options, UI, util) {
|
||||
draw: draw,
|
||||
output: output,
|
||||
UI: UI
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user