mirror of
https://github.com/actions/deploy-pages.git
synced 2026-03-31 02:24:53 +00:00
Remove 'total_count' from fake responses in tests
This commit is contained in:
@@ -76,8 +76,7 @@ describe('Deployment', () => {
|
|||||||
.reply(
|
.reply(
|
||||||
200,
|
200,
|
||||||
{
|
{
|
||||||
total_count: 1,
|
artifacts: [{ databaseId: 11, name: 'github-pages', size: 221 }]
|
||||||
artifacts: [{ databaseId: 11, name: `github-pages`, size: 221 }]
|
|
||||||
},
|
},
|
||||||
{ headers: { 'content-type': 'application/json' } }
|
{ headers: { 'content-type': 'application/json' } }
|
||||||
)
|
)
|
||||||
@@ -130,8 +129,7 @@ describe('Deployment', () => {
|
|||||||
.reply(
|
.reply(
|
||||||
200,
|
200,
|
||||||
{
|
{
|
||||||
total_count: 1,
|
artifacts: [{ databaseId: 11, name: 'github-pages', size: 221 }]
|
||||||
artifacts: [{ databaseId: 11, name: `github-pages`, size: 221 }]
|
|
||||||
},
|
},
|
||||||
{ headers: { 'content-type': 'application/json' } }
|
{ headers: { 'content-type': 'application/json' } }
|
||||||
)
|
)
|
||||||
@@ -206,8 +204,7 @@ describe('Deployment', () => {
|
|||||||
.reply(
|
.reply(
|
||||||
200,
|
200,
|
||||||
{
|
{
|
||||||
total_count: 1,
|
artifacts: [{ databaseId: 11, name: 'github-pages', size: 221 }]
|
||||||
artifacts: [{ databaseId: 11, name: `github-pages`, size: 221 }]
|
|
||||||
},
|
},
|
||||||
{ headers: { 'content-type': 'application/json' } }
|
{ headers: { 'content-type': 'application/json' } }
|
||||||
)
|
)
|
||||||
@@ -247,8 +244,7 @@ describe('Deployment', () => {
|
|||||||
.reply(
|
.reply(
|
||||||
200,
|
200,
|
||||||
{
|
{
|
||||||
total_count: 1,
|
artifacts: [{ databaseId: 11, name: 'github-pages', size: 221 }]
|
||||||
artifacts: [{ databaseId: 11, name: `github-pages`, size: 221 }]
|
|
||||||
},
|
},
|
||||||
{ headers: { 'content-type': 'application/json' } }
|
{ headers: { 'content-type': 'application/json' } }
|
||||||
)
|
)
|
||||||
@@ -288,8 +284,7 @@ describe('Deployment', () => {
|
|||||||
.reply(
|
.reply(
|
||||||
200,
|
200,
|
||||||
{
|
{
|
||||||
total_count: 1,
|
artifacts: [{ databaseId: 11, name: 'github-pages', size: 221 }]
|
||||||
artifacts: [{ databaseId: 11, name: `github-pages`, size: 221 }]
|
|
||||||
},
|
},
|
||||||
{ headers: { 'content-type': 'application/json' } }
|
{ headers: { 'content-type': 'application/json' } }
|
||||||
)
|
)
|
||||||
@@ -329,8 +324,7 @@ describe('Deployment', () => {
|
|||||||
.reply(
|
.reply(
|
||||||
200,
|
200,
|
||||||
{
|
{
|
||||||
total_count: 1,
|
artifacts: [{ databaseId: 11, name: 'github-pages', size: 221 }]
|
||||||
artifacts: [{ databaseId: 11, name: `github-pages`, size: 221 }]
|
|
||||||
},
|
},
|
||||||
{ headers: { 'content-type': 'application/json' } }
|
{ headers: { 'content-type': 'application/json' } }
|
||||||
)
|
)
|
||||||
@@ -371,10 +365,9 @@ describe('Deployment', () => {
|
|||||||
.reply(
|
.reply(
|
||||||
200,
|
200,
|
||||||
{
|
{
|
||||||
total_count: 1,
|
|
||||||
artifacts: [
|
artifacts: [
|
||||||
{ databaseId: 13, name: `github-pages`, size: 1400 },
|
{ databaseId: 13, name: 'github-pages', size: 1400 },
|
||||||
{ databaseId: 14, name: `github-pages`, size: 1620 }
|
{ databaseId: 14, name: 'github-pages', size: 1620 }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{ headers: { 'content-type': 'application/json' } }
|
{ headers: { 'content-type': 'application/json' } }
|
||||||
@@ -395,7 +388,6 @@ describe('Deployment', () => {
|
|||||||
.reply(
|
.reply(
|
||||||
200,
|
200,
|
||||||
{
|
{
|
||||||
total_count: 0,
|
|
||||||
artifacts: []
|
artifacts: []
|
||||||
},
|
},
|
||||||
{ headers: { 'content-type': 'application/json' } }
|
{ headers: { 'content-type': 'application/json' } }
|
||||||
@@ -431,8 +423,7 @@ describe('Deployment', () => {
|
|||||||
.reply(
|
.reply(
|
||||||
200,
|
200,
|
||||||
{
|
{
|
||||||
total_count: 1,
|
artifacts: [{ databaseId: 12, name: 'github-pages', size: artifactSize }]
|
||||||
artifacts: [{ databaseId: 12, name: `github-pages`, size: artifactSize }]
|
|
||||||
},
|
},
|
||||||
{ headers: { 'content-type': 'application/json' } }
|
{ headers: { 'content-type': 'application/json' } }
|
||||||
)
|
)
|
||||||
@@ -485,8 +476,7 @@ describe('Deployment', () => {
|
|||||||
.reply(
|
.reply(
|
||||||
200,
|
200,
|
||||||
{
|
{
|
||||||
total_count: 1,
|
artifacts: [{ databaseId: 11, name: 'github-pages', size: 221 }]
|
||||||
artifacts: [{ databaseId: 11, name: `github-pages`, size: 221 }]
|
|
||||||
},
|
},
|
||||||
{ headers: { 'content-type': 'application/json' } }
|
{ headers: { 'content-type': 'application/json' } }
|
||||||
)
|
)
|
||||||
@@ -555,8 +545,7 @@ describe('Deployment', () => {
|
|||||||
.reply(
|
.reply(
|
||||||
200,
|
200,
|
||||||
{
|
{
|
||||||
total_count: 1,
|
artifacts: [{ databaseId: 11, name: 'github-pages', size: 221 }]
|
||||||
artifacts: [{ databaseId: 11, name: `github-pages`, size: 221 }]
|
|
||||||
},
|
},
|
||||||
{ headers: { 'content-type': 'application/json' } }
|
{ headers: { 'content-type': 'application/json' } }
|
||||||
)
|
)
|
||||||
@@ -622,8 +611,7 @@ describe('Deployment', () => {
|
|||||||
.reply(
|
.reply(
|
||||||
200,
|
200,
|
||||||
{
|
{
|
||||||
total_count: 1,
|
artifacts: [{ databaseId: 11, name: 'github-pages', size: 221 }]
|
||||||
artifacts: [{ databaseId: 11, name: `github-pages`, size: 221 }]
|
|
||||||
},
|
},
|
||||||
{ headers: { 'content-type': 'application/json' } }
|
{ headers: { 'content-type': 'application/json' } }
|
||||||
)
|
)
|
||||||
@@ -673,8 +661,7 @@ describe('Deployment', () => {
|
|||||||
.reply(
|
.reply(
|
||||||
200,
|
200,
|
||||||
{
|
{
|
||||||
total_count: 1,
|
artifacts: [{ databaseId: 11, name: 'github-pages', size: 221 }]
|
||||||
artifacts: [{ databaseId: 11, name: `github-pages`, size: 221 }]
|
|
||||||
},
|
},
|
||||||
{ headers: { 'content-type': 'application/json' } }
|
{ headers: { 'content-type': 'application/json' } }
|
||||||
)
|
)
|
||||||
@@ -770,8 +757,7 @@ describe('Deployment', () => {
|
|||||||
.reply(
|
.reply(
|
||||||
200,
|
200,
|
||||||
{
|
{
|
||||||
total_count: 1,
|
artifacts: [{ databaseId: 11, name: 'github-pages', size: 221 }]
|
||||||
artifacts: [{ databaseId: 11, name: `github-pages`, size: 221 }]
|
|
||||||
},
|
},
|
||||||
{ headers: { 'content-type': 'application/json' } }
|
{ headers: { 'content-type': 'application/json' } }
|
||||||
)
|
)
|
||||||
@@ -856,8 +842,7 @@ describe('Deployment', () => {
|
|||||||
.reply(
|
.reply(
|
||||||
200,
|
200,
|
||||||
{
|
{
|
||||||
total_count: 1,
|
artifacts: [{ databaseId: 11, name: 'github-pages', size: 221 }]
|
||||||
artifacts: [{ databaseId: 11, name: `github-pages`, size: 221 }]
|
|
||||||
},
|
},
|
||||||
{ headers: { 'content-type': 'application/json' } }
|
{ headers: { 'content-type': 'application/json' } }
|
||||||
)
|
)
|
||||||
@@ -945,8 +930,7 @@ describe('Deployment', () => {
|
|||||||
.reply(
|
.reply(
|
||||||
200,
|
200,
|
||||||
{
|
{
|
||||||
total_count: 1,
|
artifacts: [{ databaseId: 11, name: 'github-pages', size: 221 }]
|
||||||
artifacts: [{ databaseId: 11, name: `github-pages`, size: 221 }]
|
|
||||||
},
|
},
|
||||||
{ headers: { 'content-type': 'application/json' } }
|
{ headers: { 'content-type': 'application/json' } }
|
||||||
)
|
)
|
||||||
@@ -1019,8 +1003,7 @@ describe('Deployment', () => {
|
|||||||
.reply(
|
.reply(
|
||||||
200,
|
200,
|
||||||
{
|
{
|
||||||
total_count: 1,
|
artifacts: [{ databaseId: 11, name: 'github-pages', size: 221 }]
|
||||||
artifacts: [{ databaseId: 11, name: `github-pages`, size: 221 }]
|
|
||||||
},
|
},
|
||||||
{ headers: { 'content-type': 'application/json' } }
|
{ headers: { 'content-type': 'application/json' } }
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user