Skip to content

Commit

Permalink
fix(details): returned a results object
Browse files Browse the repository at this point in the history
to meet the expectations of the project scaffolder
  • Loading branch information
travi committed Feb 3, 2019
1 parent f24dea4 commit 1cbfb44
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/scaffolder.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ import chalk from 'chalk';

export function scaffold({projectType}) {
console.log(chalk.blue(`Generating GitLab - ${projectType} project`)); // eslint-disable-line no-console

return {};
}
5 changes: 4 additions & 1 deletion test/unit/scaffolder-test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import {assert} from 'chai';
import {scaffold} from '../../src/scaffolder';

suite('scaffold', () => {
test('that a no-op function is provided for the scaffold expectation', () => scaffold({}));
test('that a no-op function is provided for the scaffold expectation', async () => {
assert.deepEqual(await scaffold({}), {});
});
});

0 comments on commit 1cbfb44

Please sign in to comment.