Skip to content

Commit

Permalink
test(index): fixing express rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
yawetse committed Mar 26, 2021
1 parent 81210ff commit b32dc42
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,10 @@ describe('jsonx', function () {
//@ts-ignore
expect(jsonx.__express.bind()).to.throw;
//@ts-ignore
jsonx.__express(null,null, (err) => {
expect(err).to.be.a('error');
jsonx.__express(null,null, (err,template) => {
console.log({err,template})
expect(err).to.eql(null);
expect(template).to.eql('<!DOCTYPE html>\n');
done();
})
});
Expand Down

0 comments on commit b32dc42

Please sign in to comment.