1
0
Fork 0

Updated debug format, and fixed insertText hook test

This commit is contained in:
Joost De Cock 2018-12-18 15:35:07 +01:00
parent 2c276998e0
commit fcbb5aa3b5
3 changed files with 53 additions and 32 deletions

View file

@ -229,7 +229,7 @@ it("Should run preRender hook", () => {
it("Should run insertText hook", () => {
let pattern = new freesewing.Pattern();
pattern.on("insertText", text => {
pattern.on("insertText", (locale, text) => {
return text.toUpperCase();
});
pattern.parts.test = new pattern.Part();