From 0d6fa711d919d4d51ff98ac547f061ee8c2bbbef Mon Sep 17 00:00:00 2001 From: pragmat1c Date: Tue, 5 Jan 2016 11:23:20 -0600 Subject: [PATCH] Added tests for success signature update --- dropzone/dropzone-tests.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dropzone/dropzone-tests.ts b/dropzone/dropzone-tests.ts index e15d6e038..3893f7c1a 100644 --- a/dropzone/dropzone-tests.ts +++ b/dropzone/dropzone-tests.ts @@ -131,6 +131,13 @@ dropzoneWithOptionsVariations = new Dropzone(".test", { clickable: ["test", document.getElementById("test")] }); +dropzoneWithOptionsVariations = new Dropzone(".test", { + success: (file:DropzoneFile, response:Object) => console.log(file, response) +}); +dropzoneWithOptionsVariations = new Dropzone(".test", { + success: (file:DropzoneFile, response:string) => console.log(file, response) +}); + const dropzone = new Dropzone(".test"); dropzone.enable();