Fix recursive glob behavior in our npm format script command

This commit is contained in:
Patrick Ellis
2021-06-04 15:55:26 -04:00
parent 84a53dc124
commit a1aa618e7a
4 changed files with 27 additions and 27 deletions

View File

@@ -1,32 +1,32 @@
export const context = {
payload: {
pull_request: {
number: 123,
},
number: 123
}
},
repo: {
owner: "monalisa",
repo: "helloworld",
},
repo: "helloworld"
}
};
const mockApi = {
issues: {
addLabels: jest.fn(),
removeLabel: jest.fn(),
removeLabel: jest.fn()
},
paginate: jest.fn(),
pulls: {
get: jest.fn().mockResolvedValue({}),
listFiles: {
endpoint: {
merge: jest.fn().mockReturnValue({}),
},
},
merge: jest.fn().mockReturnValue({})
}
}
},
repos: {
getContents: jest.fn(),
},
getContents: jest.fn()
}
};
export const GitHub = jest.fn().mockImplementation(() => mockApi);