Skip to content

Commit

Permalink
update test to according to new readme format
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanmathia committed Feb 1, 2024
1 parent 7fc6673 commit d9a12a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Kexa/__tests__/services/updateCapability.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ describe('Update Capability Service', () => {
const readme = fs.readFileSync('./README.md', 'utf8');
const tab = ' ';
Object.keys(capacityJson).forEach((key: string) => {
let sentence = `- ${key.charAt(0).toUpperCase() + key.slice(1)} check in:\n`;
let sentence = `<details>\n<summary>${key.charAt(0).toUpperCase() + key.slice(1)} check in:</summary>\n\n`;
expect((readme.match(new RegExp(sentence, "g")) || []).length).to.equal(1);
capacityJson[key]['resources'].forEach((resource: string) => {
sentence = `${tab}- ✅ ${resource}\n`
sentence = `- ✅ ${resource}\n`
expect(readme.match(new RegExp(sentence, "g")) || []).not.to.be.empty;
});
});
Expand Down

0 comments on commit d9a12a1

Please sign in to comment.