Skip to content

Commit 7af2fd7

Browse files
Fix test/unit/preferences.test.ts
1 parent a101fb0 commit 7af2fd7

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/preferences.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* global $rdf */
21
// Solid-UI temporary preferences
32
// ==============================
43
//
@@ -11,6 +10,7 @@ const authn = require('./authn/authn')
1110
const widgets = require('./widgets')
1211
const pad = require('./pad')
1312
const participation = require('./participation')
13+
const $rdf = require('rdflib')
1414

1515
// This was tabulator . preferences in the tabulator
1616
//

test/unit/preferences.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ describe('Preferences.recordSharedPreferences', () => {
5858
expect(Preferences.recordSharedPreferences).toBeInstanceOf(Function)
5959
})
6060
it('runs', () => {
61-
const subject = null
62-
const context = null
61+
const subject = sym('https://test.test/sub')
62+
const context = {}
6363
expect(Preferences.recordSharedPreferences(subject, context)).toBeTruthy()
6464
})
6565
})
@@ -69,10 +69,10 @@ describe('Preferences.getPreferencesForClass', () => {
6969
expect(Preferences.getPreferencesForClass).toBeInstanceOf(Function)
7070
})
7171
it('runs', () => {
72-
const subject = null
73-
const theClass = null
74-
const predicates = null
75-
const context = null
72+
const subject = sym('https://test.test/sub')
73+
const theClass = sym('https://test.test/class')
74+
const predicates = [ sym('https://test.test/pred') ]
75+
const context = {}
7676
expect(Preferences.getPreferencesForClass(subject, theClass, predicates, context)).toBeTruthy()
7777
})
7878
})

0 commit comments

Comments
 (0)