Browse Source

fix tests for git config

pull/7/head
Nicolas Beaussart 6 years ago
parent
commit
c664d6d318
No known key found for this signature in database GPG Key ID: 51D5A407BFCE64A9
  1. 2
      src/tests/add/prettier.spec.ts
  2. 2
      src/tests/add/tailwind.spec.ts
  3. 2
      src/utls/base-add-command.spec.ts

2
src/tests/add/prettier.spec.ts

@ -20,8 +20,10 @@ beforeEach(async () => {
execPath = filesystem.path('/', 'tmp', tmpDirName);
filesystem.dir(execPath);
process.chdir(execPath);
try {
await system.run('git config --global user.email "you@example.com"');
await system.run('git config --global user.name "Your Name"');
} catch {}
});
afterEach(() => {
console.log = originalLog;

2
src/tests/add/tailwind.spec.ts

@ -20,8 +20,10 @@ beforeEach(async () => {
execPath = filesystem.path('/', 'tmp', tmpDirName);
filesystem.dir(execPath);
process.chdir(execPath);
try {
await system.run('git config --global user.email "you@example.com"');
await system.run('git config --global user.name "Your Name"');
} catch {}
});
afterEach(() => {
console.log = originalLog;

2
src/utls/base-add-command.spec.ts

@ -18,8 +18,10 @@ beforeEach(async () => {
execPath = filesystem.path('/', 'tmp', tmpDirName);
filesystem.dir(execPath);
process.chdir(execPath);
try {
await system.run('git config --global user.email "you@example.com"');
await system.run('git config --global user.name "Your Name"');
} catch {}
});
afterEach(() => {
console.log = originalLog;

Loading…
Cancel
Save