Skip to content

Commit

Permalink
feat(schemas): add test for full receipts schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
Pattawan Gerlings committed Oct 12, 2018
1 parent 38e1cfd commit 243dba5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/pdfs/pdf.v0.spec.js
Expand Up @@ -27,3 +27,12 @@ test('PDFs: create delivery notes schema validation', function (t) {
t.error(error, 'should not get any error')
t.end()
})

test('PDFs: create full receipts schema validation', function (t) {
t.plan(2)
const createRequest = require('../../lib/v0/pdfs').templates.full_receipts.create.request
const { valid, error } = validate(createRequest)
t.ok(valid, 'create schema is valid')
t.error(error, 'should not get any error')
t.end()
})

0 comments on commit 243dba5

Please sign in to comment.