Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Selman <[email protected]>
  • Loading branch information
dselman committed Oct 17, 2024
1 parent a9b4c9c commit d4c61e1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/concerto-core/lib/introspect/decorator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)}`);

Check warning on line 119 in packages/concerto-core/lib/introspect/decorator.js

View workflow job for this annotation

GitHub Actions / Unit Tests (18.x, macos-latest)

Unexpected console statement

Check warning on line 119 in packages/concerto-core/lib/introspect/decorator.js

View workflow job for this annotation

GitHub Actions / Unit Tests (18.x, ubuntu-latest)

Unexpected console statement

Check warning on line 119 in packages/concerto-core/lib/introspect/decorator.js

View workflow job for this annotation

GitHub Actions / Unit Tests (20.x, macos-latest)

Unexpected console statement

Check warning on line 119 in packages/concerto-core/lib/introspect/decorator.js

View workflow job for this annotation

GitHub Actions / Unit Tests (20.x, ubuntu-latest)

Unexpected console statement

if (validationOptions.missingDecorator || validationOptions.invalidDecorator) {
try {
Expand Down
2 changes: 0 additions & 2 deletions packages/concerto-core/test/decoratormanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});

Expand Down
2 changes: 1 addition & 1 deletion packages/concerto-core/test/introspect/decorators.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit d4c61e1

Please sign in to comment.