mirror of
https://github.com/Kir-Antipov/mc-publish.git
synced 2024-11-22 00:11:02 -05:00
Fixed ESLint
This commit is contained in:
parent
6adbc23acb
commit
c7909fdd86
3 changed files with 5 additions and 5 deletions
|
@ -30,7 +30,7 @@ export type NeoForgeMetadataCustomPayload = {
|
||||||
* @returns The custom payload attached to the given metadata.
|
* @returns The custom payload attached to the given metadata.
|
||||||
*/
|
*/
|
||||||
export function getNeoForgeMetadataCustomPayload(metadata: RawNeoForgeMetadata): NeoForgeMetadataCustomPayload {
|
export function getNeoForgeMetadataCustomPayload(metadata: RawNeoForgeMetadata): NeoForgeMetadataCustomPayload {
|
||||||
return metadata?.[ACTION_NAME] || {}
|
return metadata?.[ACTION_NAME] || {};
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -45,7 +45,7 @@ describe("ForgeMetadata", () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("loaders", () => {
|
describe("loaders", () => {
|
||||||
test(`returns 'forge' by default`, () => {
|
test("returns 'forge' by default", () => {
|
||||||
const rawWithoutLoadersField = {
|
const rawWithoutLoadersField = {
|
||||||
...RAW_METADATA,
|
...RAW_METADATA,
|
||||||
"mc-publish": {
|
"mc-publish": {
|
||||||
|
@ -122,7 +122,7 @@ describe("ForgeMetadata", () => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
test(`special dependencies ('forge', 'minecraft', 'java') are ignored by default`, () => {
|
test("special dependencies ('forge', 'minecraft', 'java') are ignored by default", () => {
|
||||||
const metadata = ForgeMetadata.from(RAW_METADATA);
|
const metadata = ForgeMetadata.from(RAW_METADATA);
|
||||||
|
|
||||||
const dependencies = metadata.dependencies;
|
const dependencies = metadata.dependencies;
|
||||||
|
|
|
@ -45,7 +45,7 @@ describe("NeoForgeMetadata", () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("loaders", () => {
|
describe("loaders", () => {
|
||||||
test(`returns 'neoforge' by default`, () => {
|
test("returns 'neoforge' by default", () => {
|
||||||
const rawWithoutLoadersField = {
|
const rawWithoutLoadersField = {
|
||||||
...RAW_METADATA,
|
...RAW_METADATA,
|
||||||
"mc-publish": {
|
"mc-publish": {
|
||||||
|
@ -122,7 +122,7 @@ describe("NeoForgeMetadata", () => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
test(`special dependencies ('neoforge', 'minecraft', 'java') are ignored by default`, () => {
|
test("special dependencies ('neoforge', 'minecraft', 'java') are ignored by default", () => {
|
||||||
const metadata = NeoForgeMetadata.from(RAW_METADATA);
|
const metadata = NeoForgeMetadata.from(RAW_METADATA);
|
||||||
|
|
||||||
const dependencies = metadata.dependencies;
|
const dependencies = metadata.dependencies;
|
||||||
|
|
Loading…
Reference in a new issue