Skip to content

Commit

Permalink
feat: add new nut test scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
Raspikabek committed Jul 9, 2023
1 parent b110a71 commit 8539517
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/commands/sfdocs/generate.nut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ describe('docs generate NUTs', () => {
expect(result?.format).to.equal('markdown');
});

it('should generate docs in markdown and sfdocs folder', () => {
const result = execCmd<DocsGenerateResult>('docs generate --output-dir sfdocs --format markdown --json', {
ensureExitCode: 0,
}).jsonOutput?.result;
expect(result?.format).to.equal('markdown');
expect(result?.outputdir).to.equal('sfdocs');
});

it('should generate docs with reset option and not contain previous files', () => {
// fs.mkdirSync('docs/force-app/objects', { recursive: true });
// fs.writeFileSync('docs/force-app/objects/CustomObject.json', '{test: true}');
Expand Down

0 comments on commit 8539517

Please sign in to comment.