Skip to content

Commit bfd04f9

Browse files
committed
cleanup of tests from old solid-auth-client lib
1 parent 065c4ce commit bfd04f9

45 files changed

Lines changed: 0 additions & 161 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

test/unit/acl/access-controller.test.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ import { solidLogicSingleton } from '../../../src/logic'
77
const store = solidLogicSingleton.store
88

99
silenceDebugMessages()
10-
jest.mock('solid-auth-client', () => ({
11-
currentSession: () => Promise.resolve(),
12-
trackSession: () => null
13-
}))
1410
const dom = new JSDOM('<!DOCTYPE html><p>Hello world</p>').window.document
1511

1612
describe('AccessController', () => {

test/unit/acl/access-groups.test.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ import { solidLogicSingleton } from '../../../src/logic'
88
const store = solidLogicSingleton.store
99

1010
silenceDebugMessages()
11-
jest.mock('solid-auth-client', () => ({
12-
currentSession: () => Promise.resolve(),
13-
trackSession: () => null
14-
}))
1511
const dom = new JSDOM('<!DOCTYPE html><p>Hello world</p>').window.document
1612

1713
describe('AccessGroups', () => {

test/unit/acl/acl-control.test.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ import {
99
} from '../../../src/acl/acl-control'
1010

1111
silenceDebugMessages()
12-
jest.mock('solid-auth-client', () => ({
13-
currentSession: () => Promise.resolve(),
14-
trackSession: () => null
15-
}))
1612
const window = new JSDOM('<!DOCTYPE html><p>Hello world</p>').window
1713
const dom = window.document
1814

test/unit/acl/acl.test.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ import { createGraphFromTurtle } from '../helpers/createGraphFromTurtle'
3939
import { createAgentMapFromTurtle } from '../helpers/createAgentMapFromTurtle'
4040

4141
silenceDebugMessages()
42-
jest.mock('solid-auth-client', () => ({
43-
currentSession: () => Promise.resolve(),
44-
trackSession: () => null
45-
}))
4642

4743
describe('ACLbyCombination', () => {
4844
it('exists', () => {

test/unit/acl/add-agent-buttons.test.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ import { solidLogicSingleton } from '../../../src/logic'
77
const store = solidLogicSingleton.store
88

99
silenceDebugMessages()
10-
jest.mock('solid-auth-client', () => ({
11-
currentSession: () => Promise.resolve(),
12-
trackSession: () => null
13-
}))
1410
const dom = new JSDOM('<!DOCTYPE html><p>Hello world</p>').window.document
1511

1612
function instantiateAddAgentButtons () {

test/unit/acl/index.test.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ import { acl, aclControl } from '../../../src/acl/index'
55

66
silenceDebugMessages()
77

8-
jest.mock('solid-auth-client', () => ({
9-
currentSession: () => Promise.resolve(),
10-
trackSession: () => null
11-
}))
12-
138
describe('acl related APIs', () => {
149
it('exports some methods in the acl module', () => {
1510
expect(Acl).toEqual(expect.objectContaining(acl))

test/unit/acl/styles.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { silenceDebugMessages } from '../../helpers/setup'
22
import * as Styles from '../../../src/acl/styles'
33

44
silenceDebugMessages()
5-
jest.mock('solid-auth-client')
65

76
describe('Styles', () => {
87
it('exists', () => {

test/unit/chat/bookmarks.test.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ const store = solidLogicSingleton.store
99
const BOOK = Namespace('http://www.w3.org/2002/01/bookmark#')
1010

1111
silenceDebugMessages()
12-
jest.mock('solid-auth-client', () => ({
13-
currentSession: () => Promise.resolve(),
14-
trackSession: () => null
15-
}))
1612

1713
describe('findBookmarkDocument', () => {
1814
afterEach(clearStore)

test/unit/chat/dateFolder.test.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ import { DateFolder } from '../../../src/chat/dateFolder'
33
import { sym } from 'rdflib'
44

55
silenceDebugMessages()
6-
jest.mock('solid-auth-client', () => ({
7-
currentSession: () => Promise.resolve(),
8-
trackSession: () => null
9-
}))
106

117
describe('DateFolder', () => {
128
it('exists', () => {

test/unit/chat/infinite.test.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ import { infiniteMessageArea } from '../../../src/chat/infinite'
44
import { sym } from 'rdflib'
55

66
silenceDebugMessages()
7-
jest.mock('solid-auth-client', () => ({
8-
currentSession: () => Promise.resolve(),
9-
trackSession: () => null
10-
}))
117
const dom = new JSDOM('<!DOCTYPE html><p>Hello world</p>').window.document
128

139
describe('infiniteMessageArea', () => {

0 commit comments

Comments
 (0)