Skip to content

Commit

Permalink
made tests agnostic of hugo version
Browse files Browse the repository at this point in the history
  • Loading branch information
NJKode committed Nov 23, 2020
1 parent 864a0fb commit e2bf987
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/generators/buildDetails.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,12 @@ describe('buildDetails', function () {
time: ''
};
const result = await buildDetails.generateDetails({});
Object.keys(result).forEach((key) => {
if (key === 'generator') {
return;
}
expect(result[key]).to.deep.equal(expected[key]);
});
expect(result).to.deep.equal(expected);
});
});
Expand Down

0 comments on commit e2bf987

Please sign in to comment.