There was an error while loading. Please reload this page.
1 parent aaedc6f commit b38c04cCopy full SHA for b38c04c
1 file changed
test/unit/matrix.test.ts
@@ -1,9 +1,24 @@
1
import { matrixForQuery } from '../../src/matrix'
2
+import { JSDOM } from 'jsdom'
3
+
4
jest.mock('rdflib')
5
jest.mock('solid-auth-client')
6
+const window = new JSDOM('<!DOCTYPE html><p>Hello world</p>').window
7
+const dom = window.document
8
9
describe('matrixForQuery', () => {
10
it('exists', () => {
11
expect(matrixForQuery).toBeInstanceOf(Function)
12
})
13
+ it('runs', () => {
14
+ expect(matrixForQuery(
15
+ dom,
16
+ '',
17
18
19
20
+ {},
21
+ () => {}
22
+ )).toBeTruthy()
23
+ })
24
0 commit comments