Skip to content
This repository has been archived by the owner on Mar 14, 2022. It is now read-only.

Commit

Permalink
Remove duplicated test.
Browse files Browse the repository at this point in the history
  • Loading branch information
notlee committed Apr 29, 2021
1 parent 13691bd commit 33149db
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions test/unit/tasks/verify-origami-json.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 33149db

Please sign in to comment.