Skip to content

Commit

Permalink
update test for hdf2ckl converter
Browse files Browse the repository at this point in the history
Signed-off-by: Vanessa Fotso <[email protected]>
  • Loading branch information
vanessuniq committed Jun 13, 2023
1 parent 5d79896 commit dc8c8c5
Show file tree
Hide file tree
Showing 3 changed files with 26,106 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/commands/convert/hdf2ckl.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ describe('Test hdf2checklist', () => {

test
.stdout()
.command(['convert hdf2ckl', '-i', path.resolve('./test/sample_data/HDF/input/red_hat_good.json'), '-o', `${tmpobj.name}/hdf2ckl_test.json`])
.command(['convert hdf2ckl', '-i', path.resolve('./test/sample_data/HDF/input/vSphere8_report.json'), '-o', `${tmpobj.name}/hdf2ckl_test.json`])
.it('hdf-converter output test - defaults', () => {
const test = fs.readFileSync(`${tmpobj.name}/hdf2ckl_test.json`, 'utf8')
const sample = fs.readFileSync(path.resolve('./test/sample_data/checklist/red_hat_good.ckl'), 'utf8')
const sample = fs.readFileSync(path.resolve('./test/sample_data/checklist/vSphere8_report.ckl'), 'utf8')
expect(omitChecklistChangingFields(test)).to.eql(omitChecklistChangingFields(sample))
})

Expand Down
1 change: 1 addition & 0 deletions test/sample_data/HDF/input/vSphere8_report.json

Large diffs are not rendered by default.

Loading

0 comments on commit dc8c8c5

Please sign in to comment.