diff --git a/test/testDecorators.ts b/test/testDecorators.ts deleted file mode 100644 index 9f1b44d..0000000 --- a/test/testDecorators.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { exportsElementsToDispatcher, exportMethodToDispatcher, exportPropertyToDispatcher } from "../lib/dispatcher/nopeDispatcherDecorators"; - -@exportsElementsToDispatcher({ - url: 'icemaker' -}) -export class Icemaker { - - toppings = []; - sugar = 0; - - @exportMethodToDispatcher() - addTopping(topping) { - this.toppings.push(topping); - } - - @exportMethodToDispatcher() - addSugar() { - this.sugar++; - } - - @exportPropertyToDispatcher() - name: string; - -} - -const instance = new Icemaker(); -instance.addTopping('caramel') -console.log(instance) \ No newline at end of file