fix linter issues
Signed-off-by: Meredith Lancaster <[email protected]>
This commit is contained in:
@@ -48,7 +48,15 @@ describe('createStorageRecord', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
it('persists the storage record', async () => {
|
it('persists the storage record', async () => {
|
||||||
await expect(createStorageRecord(artifactOptions, packageRegistryOptions, token, undefined, headers)).resolves.toEqual([123, 456])
|
await expect(
|
||||||
|
createStorageRecord(
|
||||||
|
artifactOptions,
|
||||||
|
packageRegistryOptions,
|
||||||
|
token,
|
||||||
|
undefined,
|
||||||
|
headers
|
||||||
|
)
|
||||||
|
).resolves.toEqual([123, 456])
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ export type ArtifactOptions = {
|
|||||||
// The status of the artifact
|
// The status of the artifact
|
||||||
status?: string
|
status?: string
|
||||||
}
|
}
|
||||||
// Includes details about the package registry the artifact was published to
|
// Includes details about the package registry the artifact was published to
|
||||||
export type PackageRegistryOptions = {
|
export type PackageRegistryOptions = {
|
||||||
// The URL of the package registry
|
// The URL of the package registry
|
||||||
registryUrl: string
|
registryUrl: string
|
||||||
@@ -55,7 +55,7 @@ export async function createStorageRecord(
|
|||||||
try {
|
try {
|
||||||
const response = await octokit.request(CREATE_STORAGE_RECORD_REQUEST, {
|
const response = await octokit.request(CREATE_STORAGE_RECORD_REQUEST, {
|
||||||
owner: github.context.repo.owner,
|
owner: github.context.repo.owner,
|
||||||
headers: headers,
|
headers,
|
||||||
...buildRequestParams(artifactOptions, packageRegistryOptions)
|
...buildRequestParams(artifactOptions, packageRegistryOptions)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user