✨ Updated debug format, and fixed insertText hook test
This commit is contained in:
parent
2c276998e0
commit
fcbb5aa3b5
3 changed files with 53 additions and 32 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue