Skip to content

Commit 1aff4e5

Browse files
Joshua GrossoJoshua Grosso
authored andcommitted
Update spec stubs (post-rebase)
1 parent 8152101 commit 1aff4e5

File tree

3 files changed

+24
-14
lines changed

3 files changed

+24
-14
lines changed

test/tests/constants.spec.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,18 @@ describe('constants', () => {
1212
it('parses `git-lfs` version output', todo);
1313
});
1414

15+
describe('PASSPHRASE', () => {
16+
it('parses a passphrase prompt', todo);
17+
});
18+
1519
describe('PASSWORD', () => {
1620
it('parses a password prompt', todo);
1721
});
1822

23+
describe('PERMISSION_DENIED', () => {
24+
it('parses a permission denied error', todo);
25+
});
26+
1927
describe('SKIPPED_BYTES', () => {
2028
it('matches the number of skipped bytes in `git-lfs` output', todo);
2129
});

test/tests/helpers.spec.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,16 @@ describe('helpers', () => {
136136
});
137137

138138
describe('verifyOutput', () => {
139-
describe('when the provided stats ')
139+
describe('when no errors occurred', () => {
140+
it('no-ops', todo);
141+
});
142+
143+
describe('when all parses failed', () => {
144+
it('throws', todo);
145+
});
146+
147+
describe('when the provided input contains a permissions error', () => {
148+
it('throws', todo);
149+
});
140150
});
141151
});

test/tests/utils/spawnHelper.spec.js

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -132,23 +132,15 @@ describe('spawnHelper', () => {
132132

133133
describe('buildCredentialsCallbackProcess', () => {
134134
describe('when prompted for a username', () => {
135-
describe('when a username has not been cached', () => {
136-
it('calls the callback to obtain a username and password and writes the username out', todo);
137-
});
138-
139-
describe('when the username has been cached', () => {
140-
it('writes the cached username out', todo);
141-
});
135+
it('calls the callback to obtain a username and writes it out', todo);
142136
});
143137

144138
describe('when prompted for a password', () => {
145-
describe('when a password was provided by the callback', () => {
146-
it('writes the password out', todo);
147-
});
139+
it('calls the callback to obtain a password and writes it out', todo);
140+
});
148141

149-
describe('when a password was not provided by the callback', () => {
150-
it('calls the callback to obtain a password only and writes the password out', todo);
151-
});
142+
describe('when prompted for a passphrase', () => {
143+
it('calls the callback to obtain a passphrase and writes it out', todo);
152144
});
153145

154146
it('allows the callback to cancel', todo);

0 commit comments

Comments
 (0)