Remove 'total_count' from fake responses in tests

This commit is contained in:
James M. Greene
2023-12-22 11:22:10 -06:00
parent 02cb90ee32
commit c704b8a6e2

View File

@@ -76,8 +76,7 @@ describe('Deployment', () => {
.reply(
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' } }
)
@@ -130,8 +129,7 @@ describe('Deployment', () => {
.reply(
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' } }
)
@@ -206,8 +204,7 @@ describe('Deployment', () => {
.reply(
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' } }
)
@@ -247,8 +244,7 @@ describe('Deployment', () => {
.reply(
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' } }
)
@@ -288,8 +284,7 @@ describe('Deployment', () => {
.reply(
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' } }
)
@@ -329,8 +324,7 @@ describe('Deployment', () => {
.reply(
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' } }
)
@@ -371,10 +365,9 @@ describe('Deployment', () => {
.reply(
200,
{
total_count: 1,
artifacts: [
{ databaseId: 13, name: `github-pages`, size: 1400 },
{ databaseId: 14, name: `github-pages`, size: 1620 }
{ databaseId: 13, name: 'github-pages', size: 1400 },
{ databaseId: 14, name: 'github-pages', size: 1620 }
]
},
{ headers: { 'content-type': 'application/json' } }
@@ -395,7 +388,6 @@ describe('Deployment', () => {
.reply(
200,
{
total_count: 0,
artifacts: []
},
{ headers: { 'content-type': 'application/json' } }
@@ -431,8 +423,7 @@ describe('Deployment', () => {
.reply(
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' } }
)
@@ -485,8 +476,7 @@ describe('Deployment', () => {
.reply(
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' } }
)
@@ -555,8 +545,7 @@ describe('Deployment', () => {
.reply(
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' } }
)
@@ -622,8 +611,7 @@ describe('Deployment', () => {
.reply(
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' } }
)
@@ -673,8 +661,7 @@ describe('Deployment', () => {
.reply(
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' } }
)
@@ -770,8 +757,7 @@ describe('Deployment', () => {
.reply(
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' } }
)
@@ -856,8 +842,7 @@ describe('Deployment', () => {
.reply(
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' } }
)
@@ -945,8 +930,7 @@ describe('Deployment', () => {
.reply(
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' } }
)
@@ -1019,8 +1003,7 @@ describe('Deployment', () => {
.reply(
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' } }
)