Home
last modified time | relevance | path

Searched refs:mockName (Results 1 – 2 of 2) sorted by relevance

/third_party/jsframework/mock-generate/src/generate/
DgenerateMockJsFile.ts87 const mockName = mockNameArr[mockNameArr.length - 1]; constant
91 …mockApi += generateClassDeclaration(rootName, value, false, mockName, '', sourceFile, false) + '\n…
95 mockApi += `export function mock${firstCharacterToUppercase(mockName)}() {\n`;
99 mockFunctionName: `mock${firstCharacterToUppercase(mockName)}`
101 mockApi += `global.systemplugin.${mockName} = {`;
115 …IndexArray({ fileName: fileName, mockFunctionName: `mock${firstCharacterToUppercase(mockName)}` });
118 mockApi += `\nconst mockModule${firstCharacterToUppercase(mockName)} = {`;
123 …Api += `return mockModule${firstCharacterToUppercase(mockName)}.${firstCharacterToUppercase(mockNa…
129 const mockName = mockNameArr[mockNameArr.length - 1]; constant
131 …mockApi += generateClassDeclaration(rootName, value, false, mockName, '', sourceFile, false) + '\n…
DgenerateModuleDeclaration.ts45 const mockName = mockNameArr[mockNameArr.length - 1]; constant
46 let moduleBody = `export function mock${firstCharacterToUppercase(mockName)}() {\n`;
47 …addToIndexArray({ fileName: filename, mockFunctionName: `mock${firstCharacterToUppercase(mockName)…
56 const mockName = mockNameArr[mockNameArr.length - 1]; constant
59 mockFunctionName: `mock${firstCharacterToUppercase(mockName)}`
62 moduleBody += `global.systemplugin.${mockName} = {`;