Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions seed-tests/postclone.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ describe('postclone', function () {
expect(fs.existsSync(constants.SEED_COPY_LOCATION + "/screenshots")).toBeFalsy();
});

it('should delete the seed CONTRIBUTING.md', function () {
expect(fs.existsSync(constants.SEED_COPY_LOCATION + "/CONTRIBUTING.md")).toBeFalsy();
});

it('should delete the seed CODE_OF_CONDUCT.md', function () {
expect(fs.existsSync(constants.SEED_COPY_LOCATION + "/CODE_OF_CONDUCT.md")).toBeFalsy();
});

it('should delete the postclone.js', function () {
expect(fs.existsSync(constants.SEED_COPY_LOCATION + "/src/scripts/postclone.js")).toBeFalsy();
});
Expand Down
2 changes: 2 additions & 0 deletions src/scripts/postclone.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ function replaceFiles() {
console.log('Seed tests removed.');

// delete postclone.js
rimraf.sync('../CONTRIBUTING.md');
rimraf.sync('../CODE_OF_CONDUCT.md');
rimraf.sync(scripts_dir + '/postclone.js');

askInitGit();
Expand Down