From d4c61e1c3f04ec07f2689600171f4c59821bcc62 Mon Sep 17 00:00:00 2001 From: Dan Selman Date: Thu, 17 Oct 2024 12:28:14 +0100 Subject: [PATCH] debug Signed-off-by: Dan Selman --- packages/concerto-core/lib/introspect/decorator.js | 1 + packages/concerto-core/test/decoratormanager.js | 2 -- packages/concerto-core/test/introspect/decorators.js | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/concerto-core/lib/introspect/decorator.js b/packages/concerto-core/lib/introspect/decorator.js index eaa7dd6b7..d29cae237 100644 --- a/packages/concerto-core/lib/introspect/decorator.js +++ b/packages/concerto-core/lib/introspect/decorator.js @@ -116,6 +116,7 @@ class Decorator { const decoratedName = this.getParent().getFullyQualifiedName?.(); const mm = mf.getModelManager(); const validationOptions = mm.getDecoratorValidation(); + console.log(`ModelManager.validationOptions: ${JSON.stringify(validationOptions)}`); if (validationOptions.missingDecorator || validationOptions.invalidDecorator) { try { diff --git a/packages/concerto-core/test/decoratormanager.js b/packages/concerto-core/test/decoratormanager.js index d1b6b23cd..1392794f1 100644 --- a/packages/concerto-core/test/decoratormanager.js +++ b/packages/concerto-core/test/decoratormanager.js @@ -103,8 +103,6 @@ describe('DecoratorManager', () => { const decoratedCTO = Printer.toCTO(decoratedAst); const decoratedTest = fs.readFileSync(path.join(__dirname,'/data/decoratorcommands/decoratedTest.cto'), 'utf-8'); const result = decoratedCTO === decoratedTest; - console.log(decoratedCTO); - console.log(decoratedTest); chai.expect(result).to.be.true; }); diff --git a/packages/concerto-core/test/introspect/decorators.js b/packages/concerto-core/test/introspect/decorators.js index 31a2db03e..00b64c36d 100644 --- a/packages/concerto-core/test/introspect/decorators.js +++ b/packages/concerto-core/test/introspect/decorators.js @@ -170,7 +170,7 @@ describe('Decorators', () => { describe('#validate', () => { - it('should prevent attaching the same decorator twice', () => { + it.only('should prevent attaching the same decorator twice', () => { (() => { const modelManager = new ModelManager();