Add .prettierrc.json to configure Prettier, reformat code

This commit is contained in:
IvanZosimov
2022-12-19 17:09:22 +01:00
parent d42abd99fe
commit 0cad484cd0
6 changed files with 106 additions and 94 deletions

View File

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