forked from core-api/javascript-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocument.js
More file actions
20 lines (17 loc) · 779 Bytes
/
document.js
File metadata and controls
20 lines (17 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
const document = require('../lib/document')
describe('Test the Link', function () {
it('should raise an exception if the url is missing', function () {
const callTransport = () => new document.Link()
expect(callTransport).toThrowError(new Error('url argument is required'))
})
it('should raise an exception if the method is missing', function () {
const callTransport = () => new document.Link('http://example.com/')
expect(callTransport).toThrowError(new Error('method argument is required'))
})
})
describe('Test the Field', function () {
it('should raise an exception if the name is missing', function () {
const callTransport = () => new document.Field()
expect(callTransport).toThrowError(new Error('name argument is required'))
})
})