Skip to content

Commit 60f731c

Browse files
committed
Added more tests
1 parent 43c04cc commit 60f731c

3 files changed

Lines changed: 24 additions & 2 deletions

File tree

test/unit/pad.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import * as RdfLib from 'rdflib'
12
import { dom } from '../helpers/dom'
2-
import { NamedNode } from 'rdflib'
33
const pad = require('../../src/pad')
44
import { currentSession } from '../../__mocks__/solid-auth-client'
55

@@ -30,7 +30,7 @@ describe('renderPartipants', () => {
3030
it('runs', () => {
3131
const table = dom.createElement()
3232
const padDoc = null
33-
const subject = null
33+
const subject = RdfLib.sym('')
3434
const me = webId
3535
const options = {}
3636
expect(

test/unit/table.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
const table = require('../../src/table')
2+
3+
describe('renderTableViewPane', () => {
4+
it('exists', () => {
5+
expect(table.renderTableViewPane).toBeInstanceOf(Function)
6+
})
7+
})

test/unit/tabs.test.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import * as RdfLib from 'rdflib'
2+
import { dom } from '../helpers/dom'
3+
const tabs = require('../../src/tabs')
4+
5+
describe('tabWidget', () => {
6+
it('exists', () => {
7+
expect(tabs.tabWidget).toBeInstanceOf(Function)
8+
})
9+
/* TODO: check this because it says kb.the is not a function
10+
this is within the tabs.tabWidget function..
11+
it('runs', () => {
12+
const options = { dom, kb: RdfLib.graph() }
13+
expect(tabs.tabWidget(options)).toBe(null)
14+
} */
15+
})

0 commit comments

Comments
 (0)