Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/decaporg/decap-cms
/ API.spec.js
File
API.spec.js
packages/decap-cms-backend-gitlab/src/__tests__/API.spec.js:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
API, { getMaxAccess } from
'../API'
;
2
3
global.fetch = jest.fn().mockRejectedValue(
new
Error(
'should not call fetch inside tests'
));
4
Callers
nothing calls this directly
Calls
6
getMaxAccess
Function · 0.90
beforeEach
Function · 0.85
fn
Method · 0.80
hasWriteAccess
Method · 0.45
readFile
Method · 0.45
getStatuses
Method · 0.45
Tested by
no test coverage detected