debian-mirror-gitlab/spec/frontend/snippets/mock_data.js
2023-05-27 22:25:52 +05:30

19 lines
354 B
JavaScript

export const getCanCreateProjectSnippetMock = (createSnippet = false) => ({
data: {
project: {
userPermissions: {
createSnippet,
},
},
},
});
export const getCanCreatePersonalSnippetMock = (createSnippet = false) => ({
data: {
currentUser: {
userPermissions: {
createSnippet,
},
},
},
});