diff --git a/seed-tests/postclone.tests.js b/seed-tests/postclone.tests.js index bbe2b9c..a3d606d 100644 --- a/seed-tests/postclone.tests.js +++ b/seed-tests/postclone.tests.js @@ -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(); }); diff --git a/src/scripts/postclone.js b/src/scripts/postclone.js index 69e79f1..11e48f7 100644 --- a/src/scripts/postclone.js +++ b/src/scripts/postclone.js @@ -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();