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,
|
||||
accessToken: null,
|
||||
ssh: false,
|
||||
ssh: null
|
||||
})
|
||||
|
||||
try {
|
||||
@ -132,7 +132,7 @@ describe('git', () => {
|
||||
},
|
||||
gitHubToken: '123',
|
||||
accessToken: null,
|
||||
ssh: false,
|
||||
ssh: null
|
||||
})
|
||||
|
||||
try {
|
||||
@ -281,7 +281,7 @@ describe('git', () => {
|
||||
baseBranch: '123',
|
||||
accessToken: null,
|
||||
gitHubToken: null,
|
||||
ssh: false,
|
||||
ssh: null,
|
||||
branch: 'branch',
|
||||
folder: null,
|
||||
pusher: {
|
||||
@ -396,7 +396,7 @@ describe('git', () => {
|
||||
Object.assign(action, {
|
||||
folder: 'build',
|
||||
branch: 'branch',
|
||||
ssh: false,
|
||||
ssh: null,
|
||||
accessToken: null,
|
||||
gitHubToken: null,
|
||||
pusher: {
|
||||
|
@ -51,7 +51,7 @@ describe('main', () => {
|
||||
branch: 'branch',
|
||||
baseBranch: 'master',
|
||||
gitHubToken: null,
|
||||
ssh: false,
|
||||
ssh: null,
|
||||
accessToken: null,
|
||||
pusher: {
|
||||
name: 'asd',
|
||||
|
@ -45,7 +45,7 @@ describe('util', () => {
|
||||
folder: 'build',
|
||||
gitHubToken: null,
|
||||
accessToken: '123',
|
||||
ssh: false
|
||||
ssh: null
|
||||
}
|
||||
expect(generateTokenType(action)).toEqual('Access Token')
|
||||
})
|
||||
@ -58,7 +58,7 @@ describe('util', () => {
|
||||
folder: 'build',
|
||||
gitHubToken: '123',
|
||||
accessToken: null,
|
||||
ssh: false
|
||||
ssh: null
|
||||
}
|
||||
expect(generateTokenType(action)).toEqual('GitHub Token')
|
||||
})
|
||||
@ -71,7 +71,7 @@ describe('util', () => {
|
||||
folder: 'build',
|
||||
gitHubToken: null,
|
||||
accessToken: null,
|
||||
ssh: false
|
||||
ssh: null
|
||||
}
|
||||
expect(generateTokenType(action)).toEqual('...')
|
||||
})
|
||||
@ -103,7 +103,7 @@ describe('util', () => {
|
||||
folder: 'build',
|
||||
gitHubToken: null,
|
||||
accessToken: '123',
|
||||
ssh: false
|
||||
ssh: null
|
||||
}
|
||||
expect(generateRepositoryPath(action)).toEqual(
|
||||
'https://123@github.com/JamesIves/github-pages-deploy-action.git'
|
||||
@ -119,7 +119,7 @@ describe('util', () => {
|
||||
folder: 'build',
|
||||
gitHubToken: '123',
|
||||
accessToken: null,
|
||||
ssh: false
|
||||
ssh: null
|
||||
}
|
||||
expect(generateRepositoryPath(action)).toEqual(
|
||||
'https://x-access-token:123@github.com/JamesIves/github-pages-deploy-action.git'
|
||||
|
Loading…
Reference in New Issue
Block a user