How to use fountain-generator - 10 common examples

To help you get started, we’ve selected a few fountain-generator examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github FountainJS / generator-fountain-angular2 / test / component / index.js View on Github external
test(`Call this.copyTemplate 3 times without 'dir' option`, t => {
  const spy = chai.spy.on(context, 'copyTemplate');
  TestUtils.call(context, 'writing');
  expect(spy).to.have.been.called.exactly(3);
  t.true(context.copyTemplate['src/app/myComponent.js'].length > 0);
  t.true(context.copyTemplate['src/app/myComponent.html'].length > 0);
  t.true(context.copyTemplate['src/app/myComponent.spec.js'].length > 0);
});
github FountainJS / generator-fountain-angular2 / test / hello / index.js View on Github external
test(`Call this.copyTemplate 6 times`, t => {
  const spy = chai.spy.on(context, 'copyTemplate');
  TestUtils.call(context, 'writing');
  expect(spy).to.have.been.called.exactly(files.length);
  files.forEach(file => t.true(context.copyTemplate[file].length > 0));
});
github FountainJS / generator-fountain-angular2 / test / service / index.js View on Github external
test(`Call this.copyTemplate 2 times without 'dir' option`, t => {
  const spy = chai.spy.on(context, 'copyTemplate');
  TestUtils.call(context, 'writing');
  expect(spy).to.have.been.called.exactly(2);
  t.true(context.copyTemplate['src/app/service.js'].length > 0);
  t.true(context.copyTemplate['src/app/service.spec.js'].length > 0);
});
github FountainJS / generator-fountain-angular2 / test / directive / index.js View on Github external
test(`Call this.copyTemplate 2 times without 'dir' option`, t => {
  const spy = chai.spy.on(context, 'copyTemplate');
  TestUtils.call(context, 'writing');
  expect(spy).to.have.been.called.exactly(2);
  t.true(context.copyTemplate['src/app/myDirective.js'].length > 0);
  t.true(context.copyTemplate['src/app/myDirective.spec.js'].length > 0);
});
github FountainJS / generator-fountain-angular2 / test / pipe / index.js View on Github external
test(`Call this.copyTemplate 2 times without 'dir' option`, t => {
  const spy = chai.spy.on(context, 'copyTemplate');
  TestUtils.call(context, 'writing');
  expect(spy).to.have.been.called.exactly(2);
  t.true(context.copyTemplate['src/app/myPipe.js'].length > 0);
  t.true(context.copyTemplate['src/app/myPipe.spec.js'].length > 0);
});
github FountainJS / generator-fountain-angular2 / test / techs / index.js View on Github external
test(`Call this.copyTemplate 22 times`, t => {
  const spy = chai.spy.on(context, 'copyTemplate');
  TestUtils.call(context, 'writing.src', {
    version: require('../../package.json').version,
    date: new Date().toString()
  });
  expect(spy).to.have.been.called.exactly(files.length);
  files.forEach(file => t.true(context.copyTemplate[file].length > 0));
});
github FountainJS / generator-fountain-angular1 / test / todoMVC / inject / index.js View on Github external
test(`Call this.copyTemplate 24 times`, t => {
  const spy = chai.spy.on(context, 'copyTemplate');
  TestUtils.call(context, 'writing.src', {
    version: require('../../../package.json').version,
    date: new Date().toString()
  });
  expect(spy).to.have.been.called.exactly(files.length);
  files.filter(file => file !== 'src/index.css').forEach(file => t.true(context.copyTemplate[file].length > 0));
});
github FountainJS / generator-fountain-angular1 / test / techs / inject / index.js View on Github external
test(`Call this.copyTemplate 20 times`, t => {
  const spy = chai.spy.on(context, 'copyTemplate');
  TestUtils.call(context, 'writing.src', {
    version: require('../../../package.json').version,
    date: new Date().toString()
  });
  expect(spy).to.have.been.called.exactly(files.length);
  files.forEach(file => t.true(context.copyTemplate[file].length > 0));
});
github FountainJS / generator-fountain-react / test / techs / index.js View on Github external
test(`Call this.copyTemplate 8 times`, t => {
  const spy = chai.spy.on(context, 'copyTemplate');
  TestUtils.call(context, 'writing.src', {
    version: require('../../package.json').version,
    date: new Date().toString()
  });
  expect(spy).to.have.been.called.exactly(files.length);
  files.forEach(file => t.true(context.copyTemplate[file].length > 0));
});
github FountainJS / generator-fountain-angular2 / test / app / index.configuring.js View on Github external
test('Call this.config.set twice', () => {
  context.config = {
    set: () => {}
  };
  const spy = chai.spy.on(context.config, 'set');
  TestUtils.call(context, 'configuring.config');
  expect(spy).to.have.been.called.twice();
  expect(spy).to.have.been.called.with('version');
  expect(spy).to.have.been.called.with('props');
});

fountain-generator

Base generator for all Yeoman Fountain generators

MIT
Latest version published 7 years ago

Package Health Score

36 / 100
Full package analysis