Skip to content

Commit b38c04c

Browse files
matrix.test.ts
1 parent aaedc6f commit b38c04c

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

test/unit/matrix.test.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,24 @@
11
import { matrixForQuery } from '../../src/matrix'
2+
import { JSDOM } from 'jsdom'
3+
24
jest.mock('rdflib')
35
jest.mock('solid-auth-client')
6+
const window = new JSDOM('<!DOCTYPE html><p>Hello world</p>').window
7+
const dom = window.document
48

59
describe('matrixForQuery', () => {
610
it('exists', () => {
711
expect(matrixForQuery).toBeInstanceOf(Function)
812
})
13+
it('runs', () => {
14+
expect(matrixForQuery(
15+
dom,
16+
'',
17+
'',
18+
'',
19+
'',
20+
{},
21+
() => {}
22+
)).toBeTruthy()
23+
})
924
})

0 commit comments

Comments
 (0)