mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
parent
80968479d1
commit
0be35c761f
@ -85,7 +85,7 @@ describe('git', () => {
|
|||||||
},
|
},
|
||||||
gitHubToken: null,
|
gitHubToken: null,
|
||||||
accessToken: null,
|
accessToken: null,
|
||||||
ssh: false,
|
ssh: null
|
||||||
})
|
})
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@ -132,7 +132,7 @@ describe('git', () => {
|
|||||||
},
|
},
|
||||||
gitHubToken: '123',
|
gitHubToken: '123',
|
||||||
accessToken: null,
|
accessToken: null,
|
||||||
ssh: false,
|
ssh: null
|
||||||
})
|
})
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@ -281,7 +281,7 @@ describe('git', () => {
|
|||||||
baseBranch: '123',
|
baseBranch: '123',
|
||||||
accessToken: null,
|
accessToken: null,
|
||||||
gitHubToken: null,
|
gitHubToken: null,
|
||||||
ssh: false,
|
ssh: null,
|
||||||
branch: 'branch',
|
branch: 'branch',
|
||||||
folder: null,
|
folder: null,
|
||||||
pusher: {
|
pusher: {
|
||||||
@ -396,7 +396,7 @@ describe('git', () => {
|
|||||||
Object.assign(action, {
|
Object.assign(action, {
|
||||||
folder: 'build',
|
folder: 'build',
|
||||||
branch: 'branch',
|
branch: 'branch',
|
||||||
ssh: false,
|
ssh: null,
|
||||||
accessToken: null,
|
accessToken: null,
|
||||||
gitHubToken: null,
|
gitHubToken: null,
|
||||||
pusher: {
|
pusher: {
|
||||||
|
@ -51,7 +51,7 @@ describe('main', () => {
|
|||||||
branch: 'branch',
|
branch: 'branch',
|
||||||
baseBranch: 'master',
|
baseBranch: 'master',
|
||||||
gitHubToken: null,
|
gitHubToken: null,
|
||||||
ssh: false,
|
ssh: null,
|
||||||
accessToken: null,
|
accessToken: null,
|
||||||
pusher: {
|
pusher: {
|
||||||
name: 'asd',
|
name: 'asd',
|
||||||
|
@ -45,7 +45,7 @@ describe('util', () => {
|
|||||||
folder: 'build',
|
folder: 'build',
|
||||||
gitHubToken: null,
|
gitHubToken: null,
|
||||||
accessToken: '123',
|
accessToken: '123',
|
||||||
ssh: false
|
ssh: null
|
||||||
}
|
}
|
||||||
expect(generateTokenType(action)).toEqual('Access Token')
|
expect(generateTokenType(action)).toEqual('Access Token')
|
||||||
})
|
})
|
||||||
@ -58,7 +58,7 @@ describe('util', () => {
|
|||||||
folder: 'build',
|
folder: 'build',
|
||||||
gitHubToken: '123',
|
gitHubToken: '123',
|
||||||
accessToken: null,
|
accessToken: null,
|
||||||
ssh: false
|
ssh: null
|
||||||
}
|
}
|
||||||
expect(generateTokenType(action)).toEqual('GitHub Token')
|
expect(generateTokenType(action)).toEqual('GitHub Token')
|
||||||
})
|
})
|
||||||
@ -71,7 +71,7 @@ describe('util', () => {
|
|||||||
folder: 'build',
|
folder: 'build',
|
||||||
gitHubToken: null,
|
gitHubToken: null,
|
||||||
accessToken: null,
|
accessToken: null,
|
||||||
ssh: false
|
ssh: null
|
||||||
}
|
}
|
||||||
expect(generateTokenType(action)).toEqual('...')
|
expect(generateTokenType(action)).toEqual('...')
|
||||||
})
|
})
|
||||||
@ -103,7 +103,7 @@ describe('util', () => {
|
|||||||
folder: 'build',
|
folder: 'build',
|
||||||
gitHubToken: null,
|
gitHubToken: null,
|
||||||
accessToken: '123',
|
accessToken: '123',
|
||||||
ssh: false
|
ssh: null
|
||||||
}
|
}
|
||||||
expect(generateRepositoryPath(action)).toEqual(
|
expect(generateRepositoryPath(action)).toEqual(
|
||||||
'https://123@github.com/JamesIves/github-pages-deploy-action.git'
|
'https://123@github.com/JamesIves/github-pages-deploy-action.git'
|
||||||
@ -119,7 +119,7 @@ describe('util', () => {
|
|||||||
folder: 'build',
|
folder: 'build',
|
||||||
gitHubToken: '123',
|
gitHubToken: '123',
|
||||||
accessToken: null,
|
accessToken: null,
|
||||||
ssh: false
|
ssh: null
|
||||||
}
|
}
|
||||||
expect(generateRepositoryPath(action)).toEqual(
|
expect(generateRepositoryPath(action)).toEqual(
|
||||||
'https://x-access-token:123@github.com/JamesIves/github-pages-deploy-action.git'
|
'https://x-access-token:123@github.com/JamesIves/github-pages-deploy-action.git'
|
||||||
|
Loading…
Reference in New Issue
Block a user