diff --git a/test/validator/index.js b/test/validator/index.js index 041e8f5b2a..8bf0400d7c 100644 --- a/test/validator/index.js +++ b/test/validator/index.js @@ -28,7 +28,7 @@ describe("validate", () => { dev: config.dev, legacy: config.legacy, generate: false, - customElement : config.customElement || false + customElement: config.customElement }); assert.deepEqual(warnings.map(w => ({ diff --git a/test/validator/samples/tag-custom-element-options-missing/warnings.json b/test/validator/samples/tag-custom-element-options-missing/warnings.json index 505f44e5d1..185c6c3179 100644 --- a/test/validator/samples/tag-custom-element-options-missing/warnings.json +++ b/test/validator/samples/tag-custom-element-options-missing/warnings.json @@ -1,15 +1,15 @@ [{ - "code": "missing-custom-element-compile-options", - "message": "The 'tag' option is used when generating a custom element. Did you forget the 'customElement: true' compile option?", - "start": { - "line": 1, - "column": 16, - "character": 16 - }, - "end": { - "line": 1, - "column": 36, - "character": 36 - }, - "pos": 16 + "code": "missing-custom-element-compile-options", + "message": "The 'tag' option is used when generating a custom element. Did you forget the 'customElement: true' compile option?", + "start": { + "line": 1, + "column": 16, + "character": 16 + }, + "end": { + "line": 1, + "column": 36, + "character": 36 + }, + "pos": 16 }]