diff --git a/test/unit/tasks/verify-origami-json.test.js b/test/unit/tasks/verify-origami-json.test.js index ccb118c1..387bf91e 100644 --- a/test/unit/tasks/verify-origami-json.test.js +++ b/test/unit/tasks/verify-origami-json.test.js @@ -254,27 +254,6 @@ describe('verify-origami-json', function () { proclaim.notCalled(console.log); }); - it('should fail if origamiType property is "module"', function () { - const origamiJSON = JSON.parse(fs.readFileSync(path.join(process.cwd(), 'origami.json'), 'utf-8')); - delete origamiJSON.origamiVersion; - fs.writeFileSync('origami.json', JSON.stringify(origamiJSON), 'utf8'); - - return verifyOrigamiJson().task() - .catch(function (verifiedOrigamiJson) { - proclaim.equal( - verifiedOrigamiJson.message, - 'Failed linting:\n\n' + - 'The origamiVersion property needs to be set to "2.0" or higher, this version of Origami Build tools only supports v2 of the Origami component specification.\n\n' + - 'The origami.json file does not conform to the specification at http://origami.ft.com/docs/syntax/origamijson/' - ); - proclaim.calledOnce(console.log); - proclaim.calledWithExactly( - console.log, - `::error file=origami.json,line=1,col=1::Failed linting:%0A%0AThe origamiVersion property needs to be set to "2.0" or higher, this version of Origami Build tools only supports v2 of the Origami component specification.%0A%0AThe origami.json file does not conform to the specification at http://origami.ft.com/docs/syntax/origamijson/` - ); - }); - }); - it('should fail if missing origamiVersion property', function () { const origamiJSON = JSON.parse(fs.readFileSync(path.join(process.cwd(), 'origami.json'), 'utf-8')); delete origamiJSON.origamiVersion;