Skip to content

Commit 79ec2fe

Browse files
committed
Forgot to readd existing tests that I didn't have time to improve
1 parent 50e65b3 commit 79ec2fe

1 file changed

Lines changed: 153 additions & 153 deletions

File tree

test/unit/acl/acl.test.ts

Lines changed: 153 additions & 153 deletions
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,23 @@ import { createAgentMapFromTurtle } from '../helpers/createAgentMapFromTurtle'
4242
silenceDebugMessages()
4343
jest.mock('solid-auth-client')
4444

45-
// describe('ACLbyCombination', () => {
46-
// it('exists', () => {
47-
// expect(ACLbyCombination).toBeInstanceOf(Function)
48-
// })
49-
// it('runs', () => {
50-
// expect(ACLbyCombination({} as AgentMapMap)).toBeInstanceOf(Object)
51-
// })
52-
// })
53-
//
54-
// describe('ACLToString', () => {
55-
// it('exists', () => {
56-
// expect(ACLToString).toBeInstanceOf(Function)
57-
// })
58-
// it('runs', () => {
59-
// expect(ACLToString({} as AgentMapMap)).toEqual('{}')
60-
// })
61-
// })
45+
describe('ACLbyCombination', () => {
46+
it('exists', () => {
47+
expect(ACLbyCombination).toBeInstanceOf(Function)
48+
})
49+
it('runs', () => {
50+
expect(ACLbyCombination({} as AgentMapMap)).toBeInstanceOf(Object)
51+
})
52+
})
53+
54+
describe('ACLToString', () => {
55+
it('exists', () => {
56+
expect(ACLToString).toBeInstanceOf(Function)
57+
})
58+
it('runs', () => {
59+
expect(ACLToString({} as AgentMapMap)).toEqual('{}')
60+
})
61+
})
6262

6363
describe('ACLunion', () => {
6464
it('combines a list of agent maps into one agent map', async () => {
@@ -113,36 +113,36 @@ describe('adoptACLDefault', () => {
113113
})
114114
})
115115

116-
// describe('comboToString', () => {
117-
// it('exists', () => {
118-
// expect(comboToString).toBeInstanceOf(Function)
119-
// })
120-
// it('runs', () => {
121-
// expect(comboToString({} as ComboList)).toEqual('{}')
122-
// })
123-
// })
124-
//
125-
// describe('fixIndividualACL', () => {
126-
// it('exists', () => {
127-
// expect(fixIndividualACL).toBeInstanceOf(Function)
128-
// })
129-
// it('runs', () => {
130-
// expect(fixIndividualACL(sym('https://test.test#'), [], () => {
131-
// }, () => {
132-
// })).toEqual(undefined)
133-
// })
134-
// })
135-
//
136-
// describe('fixIndividualCardACL', () => {
137-
// it('exists', () => {
138-
// expect(fixIndividualCardACL).toBeInstanceOf(Function)
139-
// })
140-
// it('runs', () => {
141-
// expect(fixIndividualCardACL(sym('https://test.test#'), () => {
142-
// }, () => {
143-
// })).toEqual(undefined)
144-
// })
145-
// })
116+
describe('comboToString', () => {
117+
it('exists', () => {
118+
expect(comboToString).toBeInstanceOf(Function)
119+
})
120+
it('runs', () => {
121+
expect(comboToString({} as ComboList)).toEqual('{}')
122+
})
123+
})
124+
125+
describe('fixIndividualACL', () => {
126+
it('exists', () => {
127+
expect(fixIndividualACL).toBeInstanceOf(Function)
128+
})
129+
it('runs', () => {
130+
expect(fixIndividualACL(sym('https://test.test#'), [], () => {
131+
}, () => {
132+
})).toEqual(undefined)
133+
})
134+
})
135+
136+
describe('fixIndividualCardACL', () => {
137+
it('exists', () => {
138+
expect(fixIndividualCardACL).toBeInstanceOf(Function)
139+
})
140+
it('runs', () => {
141+
expect(fixIndividualCardACL(sym('https://test.test#'), () => {
142+
}, () => {
143+
})).toEqual(undefined)
144+
})
145+
})
146146

147147
describe('getACL', () => {
148148
let callbackFunction
@@ -232,99 +232,99 @@ describe('getACLorDefault', () => {
232232

233233
})
234234

235-
// describe('getProspectiveHolder', () => {
236-
// it('exists', () => {
237-
// expect(getProspectiveHolder).toBeInstanceOf(Function)
238-
// })
239-
// it.skip('runs', async () => {
240-
// expect(await getProspectiveHolder('')).toEqual(undefined)
241-
// })
242-
// })
243-
//
244-
// describe('loadUnionACL', () => {
245-
// it('exists', () => {
246-
// expect(loadUnionACL).toBeInstanceOf(Function)
247-
// })
248-
// it('runs', () => {
249-
// expect(loadUnionACL([], () => {
250-
// })).toEqual(undefined)
251-
// })
252-
// })
253-
//
254-
// describe('makeACLGraph', () => {
255-
// it('exists', () => {
256-
// expect(makeACLGraph).toBeInstanceOf(Function)
257-
// })
258-
// it('runs', () => {
259-
// expect(makeACLGraph(
260-
// createLiveStore(),
261-
// sym('https://test.test#'),
262-
// {} as AgentMapMap,
263-
// sym('https://test.test#')
264-
// )).toEqual(undefined)
265-
// })
266-
// })
267-
//
268-
// describe('makeACLGraphbyCombo', () => {
269-
// it('exists', () => {
270-
// expect(makeACLGraphbyCombo).toBeInstanceOf(Function)
271-
// })
272-
// it('runs', () => {
273-
// expect(makeACLGraphbyCombo(
274-
// createLiveStore(),
275-
// sym('https://test.test#'),
276-
// {} as ComboList,
277-
// sym('https://test.test#'),
278-
// false,
279-
// false
280-
// )).toEqual(undefined)
281-
// })
282-
// })
283-
//
284-
// describe('makeACLString', () => {
285-
// it('exists', () => {
286-
// expect(makeACLString).toBeInstanceOf(Function)
287-
// })
288-
// it.skip('runs', () => { // skipping this until serialize is typed correctly
289-
// expect(makeACLString(
290-
// sym('https://test.test#'),
291-
// {} as AgentMapMap,
292-
// sym('https://test.test#')
293-
// )).toEqual(undefined)
294-
// })
295-
// })
296-
//
297-
// describe('putACLbyCombo', () => {
298-
// it('exists', () => {
299-
// expect(putACLbyCombo).toBeInstanceOf(Function)
300-
// })
301-
// it('runs', () => {
302-
// expect(putACLbyCombo(
303-
// createLiveStore(),
304-
// sym('https://test.test#'),
305-
// {} as ComboList,
306-
// sym('https://test.test#'),
307-
// () => {
308-
// }
309-
// )).toEqual(undefined)
310-
// })
311-
// })
312-
//
313-
// describe('putACLObject', () => {
314-
// it('exists', () => {
315-
// expect(putACLObject).toBeInstanceOf(Function)
316-
// })
317-
// it('runs', () => {
318-
// expect(putACLObject(
319-
// createLiveStore(),
320-
// sym('https://test.test#'),
321-
// {} as AgentMapMap,
322-
// sym('https://test.test#'),
323-
// () => {
324-
// }
325-
// )).toEqual(undefined)
326-
// })
327-
// })
235+
describe('getProspectiveHolder', () => {
236+
it('exists', () => {
237+
expect(getProspectiveHolder).toBeInstanceOf(Function)
238+
})
239+
it.skip('runs', async () => {
240+
expect(await getProspectiveHolder('')).toEqual(undefined)
241+
})
242+
})
243+
244+
describe('loadUnionACL', () => {
245+
it('exists', () => {
246+
expect(loadUnionACL).toBeInstanceOf(Function)
247+
})
248+
it('runs', () => {
249+
expect(loadUnionACL([], () => {
250+
})).toEqual(undefined)
251+
})
252+
})
253+
254+
describe('makeACLGraph', () => {
255+
it('exists', () => {
256+
expect(makeACLGraph).toBeInstanceOf(Function)
257+
})
258+
it('runs', () => {
259+
expect(makeACLGraph(
260+
createLiveStore(),
261+
sym('https://test.test#'),
262+
{} as AgentMapMap,
263+
sym('https://test.test#')
264+
)).toEqual(undefined)
265+
})
266+
})
267+
268+
describe('makeACLGraphbyCombo', () => {
269+
it('exists', () => {
270+
expect(makeACLGraphbyCombo).toBeInstanceOf(Function)
271+
})
272+
it('runs', () => {
273+
expect(makeACLGraphbyCombo(
274+
createLiveStore(),
275+
sym('https://test.test#'),
276+
{} as ComboList,
277+
sym('https://test.test#'),
278+
false,
279+
false
280+
)).toEqual(undefined)
281+
})
282+
})
283+
284+
describe('makeACLString', () => {
285+
it('exists', () => {
286+
expect(makeACLString).toBeInstanceOf(Function)
287+
})
288+
it.skip('runs', () => { // skipping this until serialize is typed correctly
289+
expect(makeACLString(
290+
sym('https://test.test#'),
291+
{} as AgentMapMap,
292+
sym('https://test.test#')
293+
)).toEqual(undefined)
294+
})
295+
})
296+
297+
describe('putACLbyCombo', () => {
298+
it('exists', () => {
299+
expect(putACLbyCombo).toBeInstanceOf(Function)
300+
})
301+
it('runs', () => {
302+
expect(putACLbyCombo(
303+
createLiveStore(),
304+
sym('https://test.test#'),
305+
{} as ComboList,
306+
sym('https://test.test#'),
307+
() => {
308+
}
309+
)).toEqual(undefined)
310+
})
311+
})
312+
313+
describe('putACLObject', () => {
314+
it('exists', () => {
315+
expect(putACLObject).toBeInstanceOf(Function)
316+
})
317+
it('runs', () => {
318+
expect(putACLObject(
319+
createLiveStore(),
320+
sym('https://test.test#'),
321+
{} as AgentMapMap,
322+
sym('https://test.test#'),
323+
() => {
324+
}
325+
)).toEqual(undefined)
326+
})
327+
})
328328

329329
describe('readACL', () => {
330330
let agentMap
@@ -382,16 +382,16 @@ describe('sameACL', () => {
382382
})
383383
})
384384

385-
// describe('setACL', () => {
386-
// it('exists', () => {
387-
// expect(setACL).toBeInstanceOf(Function)
388-
// })
389-
// it('runs', () => {
390-
// expect(setACL(
391-
// sym('https://test.test#'),
392-
// '',
393-
// () => {
394-
// }
395-
// )).toBeUndefined()
396-
// })
397-
// })
385+
describe('setACL', () => {
386+
it('exists', () => {
387+
expect(setACL).toBeInstanceOf(Function)
388+
})
389+
it('runs', () => {
390+
expect(setACL(
391+
sym('https://test.test#'),
392+
'',
393+
() => {
394+
}
395+
)).toBeUndefined()
396+
})
397+
})

0 commit comments

Comments
 (0)