We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0df61e5 commit a4cc3e0Copy full SHA for a4cc3e0
test/module.spec.js
@@ -1,6 +1,7 @@
1
const { expect } = require('chai')
2
const {
3
askForFoldersAccess,
4
+ askForCalendarAccess,
5
getAuthStatus,
6
askForPhotosAccess,
7
askForScreenCaptureAccess,
@@ -50,6 +51,14 @@ describe('node-mac-permissions', () => {
50
51
})
52
53
54
+ describe('askForCalendarAccess([accessLevel])', () => {
55
+ it('should throw on invalid accessLevel', () => {
56
+ expect(() => {
57
+ askForCalendarAccess('bad-type')
58
+ }).to.throw(/bad-type must be one of either 'write-only' or 'full'/)
59
+ })
60
61
+
62
describe('askForInputMonitoringAccess()', () => {
63
it('should throw on invalid types', () => {
64
expect(() => {
0 commit comments