MCPcopy
hub / github.com/diegohaz/rest / api

Function api

test/index.js:160–167  ·  view source on GitHub ↗
(answers, dir)

Source from the content-addressed store, hash-verified

158}
159
160function api(answers, dir) {
161 return helpers.run(path.join(__dirname, '../generators/api'))
162 .inTmpDir(function (tmpDir) {
163 fs.copySync(dir, tmpDir);
164 })
165 .withPrompts(answers)
166 .toPromise();
167}
168
169describe('generator-rest', function () {
170 describe('default install', function () {

Callers 13

defaultApiFunction · 0.85
apiWithNoMethodsFunction · 0.85
apiWithReservedWordFunction · 0.85
apiWithAllMasterMethodsFunction · 0.85
apiWithAllAdminMethodsFunction · 0.85
apiWithAllUserMethodsFunction · 0.85
apiWithoutModelFunction · 0.85
apiWithModelFieldsFunction · 0.85
apiWithUserModelFieldFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected