Skip to content
This repository was archived by the owner on Mar 30, 2021. It is now read-only.

Commit 401e65c

Browse files
committed
fix missing file that caused tests to fail
1 parent 7ac7a45 commit 401e65c

File tree

2 files changed

+23
-5
lines changed

2 files changed

+23
-5
lines changed

__tests__/app.js

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,25 @@ const helpers = require("yeoman-test");
55

66
describe("generator-biojs-webcomponents:app", () => {
77
beforeAll(() => {
8-
return helpers
9-
.run(path.join(__dirname, "../generators/app"))
10-
.withPrompts({ someAnswer: true });
8+
return helpers.run(path.join(__dirname, "../generators/app")).withPrompts({
9+
someAnswer: true
10+
});
1111
});
1212

13-
it("creates files", () => {
14-
assert.file(["dummyfile.txt"]);
13+
it("creates expected files", () => {
14+
assert.file([
15+
"examples/index.html",
16+
"src/index.js",
17+
"src/style.less",
18+
".gitignore",
19+
"index.html",
20+
"package.json",
21+
"README.md",
22+
"TODO.md",
23+
"webpack.config.js"
24+
]);
25+
});
26+
it("initialises server script", () => {
27+
assert.file(["dev/serve.js"]);
1528
});
1629
});

generators/app/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ module.exports = class extends Generator {
118118
this.destinationPath(".gitignore")
119119
);
120120

121+
this.fs.copyTpl(
122+
this.templatePath("TODO.md"),
123+
this.destinationPath("TODO.md")
124+
);
125+
121126
this.fs.copyTpl(
122127
this.templatePath("img/favicon.png"),
123128
this.destinationPath("img/favicon.png")

0 commit comments

Comments
 (0)