debian-mirror-gitlab/spec/frontend/snippets/mock_data.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
354 B
JavaScript
Raw Normal View History

2023-05-27 22:25:52 +05:30
export const getCanCreateProjectSnippetMock = (createSnippet = false) => ({
data: {
project: {
userPermissions: {
createSnippet,
},
},
},
});
export const getCanCreatePersonalSnippetMock = (createSnippet = false) => ({
data: {
currentUser: {
userPermissions: {
createSnippet,
},
},
},
});