Skip to content

Commit 2dde988

Browse files
committed
remove unused test
1 parent 216a938 commit 2dde988

File tree

3 files changed

+0
-53
lines changed

3 files changed

+0
-53
lines changed

src/drivers/bitbucket_cloud.test.js

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -39,25 +39,4 @@ describe('Non Enviromental tests', () => {
3939
'Bitbucket Cloud does not support runnerToken!'
4040
);
4141
});
42-
43-
test('updateGitConfig', async () => {
44-
const client = new BitbucketCloud({
45-
repo: 'https://bitbucket.org/test/test',
46-
token: 'dXNlcjpwYXNz'
47-
});
48-
const command = await client.updateGitConfig({
49-
userName: 'john',
50-
userEmail: '[email protected]'
51-
});
52-
expect(command).toMatchInlineSnapshot(`
53-
"
54-
git config --unset user.name;
55-
git config --unset user.email;
56-
git config --unset push.default;
57-
git config --unset http.http://bitbucket.org/test/test.proxy;
58-
git config user.name \\"john\\" &&
59-
git config user.email \\"[email protected]\\" &&
60-
git remote set-url origin \\"https://user:[email protected]/test/test.git\\""
61-
`);
62-
});
6342
});

src/drivers/github.test.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,6 @@ describe('Non Enviromental tests', () => {
3838
expect(output.length).toBe(29);
3939
});
4040

41-
test('updateGitConfig', async () => {
42-
const client = new GithubClient({
43-
repo: 'https://github.com/test/test',
44-
token: 'dXNlcjpwYXNz'
45-
});
46-
const command = await client.updateGitConfig();
47-
expect(command).toMatchInlineSnapshot(`
48-
"
49-
git config --unset http.https://github.com/.extraheader;
50-
git config user.name \\"GitHub Action\\" &&
51-
git config user.email \\"[email protected]\\" &&
52-
git remote set-url origin \\"https://token:[email protected]/test/test.git\\""
53-
`);
54-
});
55-
5641
test('Check pinned version of Octokit', async () => {
5742
// This test is a must to ensure that @actions/github is not updated.
5843
// There is a bug that after a reRunWorkflow deprecation rest the library does not contains

src/drivers/gitlab.test.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -42,21 +42,4 @@ describe('Non Enviromental tests', () => {
4242
const output = await client.runnerToken();
4343
expect(output.length >= 20).toBe(true);
4444
});
45-
46-
test('updateGitConfig', async () => {
47-
const client = new GitlabClient({
48-
repo: 'https://gitlab.com/test/test',
49-
token: 'dXNlcjpwYXNz'
50-
});
51-
const command = await client.updateGitConfig({
52-
userName: 'john',
53-
userEmail: '[email protected]'
54-
});
55-
expect(command).toMatchInlineSnapshot(`
56-
"
57-
git config user.name \\"john\\" &&
58-
git config user.email \\"[email protected]\\" &&
59-
git remote set-url origin \\"https://token:[email protected]/test/test.git\\""
60-
`);
61-
});
6245
});

0 commit comments

Comments
 (0)