caldav-adapter 9.2.0 → 9.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/test/test.js DELETED
@@ -1,41 +0,0 @@
1
- const test = require('ava');
2
- const caldavAdapter = require('..');
3
-
4
- // NOTE: defer to FE for tests
5
-
6
- test('exports a function', (t) => {
7
- t.true(typeof caldavAdapter === 'function');
8
- });
9
-
10
- test('VTODO supported component set includes VTODO', (t) => {
11
- const options = {
12
- data: {
13
- getCalendarId: () => 'test',
14
- buildICS: () => 'test',
15
- getETag: () => 'test'
16
- }
17
- };
18
-
19
- const { tags } = require('../common/tags')(options);
20
- const supportedComponentSetTag =
21
- tags['urn:ietf:params:xml:ns:caldav']['supported-calendar-component-set'];
22
-
23
- t.is(typeof supportedComponentSetTag, 'object');
24
- t.is(typeof supportedComponentSetTag.resp, 'function');
25
- });
26
-
27
- test('VTODO content type is dynamic based on component', (t) => {
28
- const options = {
29
- data: {
30
- getCalendarId: () => 'test',
31
- buildICS: () => 'test',
32
- getETag: () => 'test'
33
- }
34
- };
35
-
36
- const { tags } = require('../common/tags')(options);
37
- const contentTypeTag = tags['DAV:'].getcontenttype;
38
-
39
- t.is(typeof contentTypeTag, 'object');
40
- t.is(typeof contentTypeTag.resp, 'function');
41
- });