Skip to content

Commit cfe1cc9

Browse files
Frederic Collonvaltelamonian
authored andcommitted
Fix jest tests
1 parent e7ab244 commit cfe1cc9

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

tests/test-components/FileList.spec.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ jest.mock('@jupyterlab/apputils');
1212
describe('FileList', () => {
1313
const props: IFileListProps = {
1414
model: null,
15-
refresh: async () => {},
1615
renderMime: null,
1716
stagedFiles: [],
1817
unstagedFiles: [],
@@ -100,7 +99,7 @@ describe('FileList', () => {
10099
// Mock identity look up
101100
const identity = jest
102101
.spyOn(GitExtension.prototype, 'config')
103-
.mockImplementation((options, path) => {
102+
.mockImplementation(options => {
104103
let response: Response = null;
105104
if (options === undefined) {
106105
response = new Response(
@@ -151,7 +150,7 @@ describe('FileList', () => {
151150
// Mock identity look up
152151
const identity = jest
153152
.spyOn(GitExtension.prototype, 'config')
154-
.mockImplementation((options, path) => {
153+
.mockImplementation(options => {
155154
let response: Response = null;
156155
if (options === undefined) {
157156
response = new Response(
@@ -202,7 +201,7 @@ describe('FileList', () => {
202201
// Mock identity look up
203202
const identity = jest
204203
.spyOn(GitExtension.prototype, 'config')
205-
.mockImplementation((options, path) => {
204+
.mockImplementation(options => {
206205
let response: Response = null;
207206
if (options === undefined) {
208207
response = new Response(

tests/test-components/HistorySideBar.spec.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ describe('HistorySideBar', () => {
2222
branches: [],
2323
isExpanded: true,
2424
model: null,
25-
refresh: () => Promise.resolve(),
2625
renderMime: null
2726
};
2827
test('renders commit nodes when expanded', () => {

tests/test-components/PastCommitNode.spec.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ describe('PastCommitNode', () => {
4949
const branches: Git.IBranch[] = notMatchingBranches.concat(matchingBranches);
5050
const props: IPastCommitNodeProps = {
5151
model: null,
52-
refresh: async () => {},
5352
pastCommit: {
5453
commit: '2414721b194453f058079d897d13c4e377f92dc6',
5554
author: 'author',

0 commit comments

Comments
 (0)