MCPcopy Create free account
hub / github.com/facebook/memlab / resourceTypeToSuffix

Method resourceTypeToSuffix

packages/e2e/src/ScriptManager.ts:113–124  ·  view source on GitHub ↗
(resourceType: string)

Source from the content-addressed store, hash-verified

111 }
112
113 public resourceTypeToSuffix(resourceType: string): string {
114 switch (resourceType) {
115 case 'Script':
116 return '.js';
117 case 'Stylesheet':
118 return '.css';
119 case 'Document':
120 return '.html';
121 default:
122 return '.unknown';
123 }
124 }
125
126 public async logScript(
127 url: string,

Callers 1

logScriptMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected