MCPcopy Index your code
hub / github.com/angular-fullstack/generator-angular-fullstack / runEndpointGen

Function runEndpointGen

src/test/main.test.js:34–55  ·  view source on GitHub ↗
(name, opt={})

Source from the content-addressed store, hash-verified

32const TEST_DIR = __dirname;
33
34function runEndpointGen(name, opt={}) {
35 let prompts = opt.prompts || {};
36 let options = opt.options || {};
37 let config = opt.config;
38
39 return new Promise((resolve, reject) => {
40 let gen = helpers
41 .run(require.resolve('../generators/endpoint'), {tmpdir: false})
42 .withOptions(options)
43 .withArguments([name])
44 .withPrompts(prompts);
45
46 if(config) {
47 gen
48 .withLocalConfig(config);
49 }
50
51 gen
52 .on('error', reject)
53 .on('end', () => resolve());
54 });
55}
56
57describe('angular-fullstack:app', function() {
58 describe('default settings', function() {

Callers 1

main.test.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected