Skip to content

Commit ff6a874

Browse files
manual mocks for rdflib and sac
1 parent f434fa3 commit ff6a874

4 files changed

Lines changed: 23 additions & 2 deletions

File tree

__mocks__/rdflib.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
export function graph() {
2+
return {
3+
any: () => {
4+
return []
5+
},
6+
each: () => {
7+
return []
8+
}
9+
}
10+
}
11+
export function fetcher() {
12+
return {}
13+
}
14+
export function namedNode() {
15+
return {}
16+
}
17+
export function Namespace() {
18+
return {}
19+
}
20+
export class UpdateManager {
21+
}

__mocks__/solid-auth-client.ts

Whitespace-only changes.

test/unit/chat/infinite.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
jest.mock('rdflib')
2-
import * as RdfLib from 'rdflib'
2+
import { graph } from 'rdflib'
33
jest.mock('solid-auth-client')
44
import * as SolidAuthClient from 'solid-auth-client'
55

test/unit/widgets/buttons.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import {
4242
} from '../../../src/widgets/buttons'
4343

4444
describe('addStyleSheet', () => {
45-
it('exists', () => {
45+
it.only('exists', () => {
4646
expect(addStyleSheet).toBeInstanceOf(Function)
4747
})
4848
it('runs', () => {

0 commit comments

Comments
 (0)