|
|
@ -124,7 +124,7 @@ describe('BaseAddCommand', () => { |
|
|
'touch test.md', |
|
|
'touch test.md', |
|
|
'git add test.md', |
|
|
'git add test.md', |
|
|
'git add .nbxrc', |
|
|
'git add .nbxrc', |
|
|
'git commit -m "test commit" --author="Dummy <dummy@noop.noop>', |
|
|
|
|
|
|
|
|
'git commit -m "test commit" --author="Dummy <dummy@noop.noop>"', |
|
|
'echo hello > test.md', |
|
|
'echo hello > test.md', |
|
|
], |
|
|
], |
|
|
}, |
|
|
}, |
|
|
@ -134,7 +134,7 @@ describe('BaseAddCommand', () => { |
|
|
'touch test.md', |
|
|
'touch test.md', |
|
|
'git add test.md', |
|
|
'git add test.md', |
|
|
'git add .nbxrc', |
|
|
'git add .nbxrc', |
|
|
'git commit -m "test commit" --author="Dummy <dummy@noop.noop>', |
|
|
|
|
|
|
|
|
'git commit -m "test commit" --author="Dummy <dummy@noop.noop>"', |
|
|
'rm -f test.md', |
|
|
'rm -f test.md', |
|
|
], |
|
|
], |
|
|
}, |
|
|
}, |
|
|
@ -175,7 +175,7 @@ describe('BaseAddCommand', () => { |
|
|
await system.run('git init'); |
|
|
await system.run('git init'); |
|
|
await system.run('git add .nbxrc'); |
|
|
await system.run('git add .nbxrc'); |
|
|
await system.run('pwd'); |
|
|
await system.run('pwd'); |
|
|
await system.run('git commit -m "initial commit" --author="Dummy <dummy@noop.noop>'); |
|
|
|
|
|
|
|
|
await system.run('git commit -m "initial commit" --author="Dummy <dummy@noop.noop>"'); |
|
|
await system.run('git status'); |
|
|
await system.run('git status'); |
|
|
await RunCommand.run(['initGit']); |
|
|
await RunCommand.run(['initGit']); |
|
|
const gitConfig = filesystem.read('.git/config'); |
|
|
const gitConfig = filesystem.read('.git/config'); |
|
|
@ -248,7 +248,7 @@ describe('BaseAddCommand', () => { |
|
|
filesystem.write('.nbxrc', { git: { user: 'aaa', email: 'bbb' } }); |
|
|
filesystem.write('.nbxrc', { git: { user: 'aaa', email: 'bbb' } }); |
|
|
await system.run('touch test.md'); |
|
|
await system.run('touch test.md'); |
|
|
await system.run('git add * .nbxrc'); |
|
|
await system.run('git add * .nbxrc'); |
|
|
await system.run('git commit -m "test" --author="Dummy <dummy@noop.noop>'); |
|
|
|
|
|
|
|
|
await system.run('git commit -m "test" --author="Dummy <dummy@noop.noop>"'); |
|
|
const before = await system.run('git status -s'); |
|
|
const before = await system.run('git status -s'); |
|
|
|
|
|
|
|
|
await RunCommand.run(['gitAddUnstaged']); |
|
|
await RunCommand.run(['gitAddUnstaged']); |
|
|
|