generated from nhcarrigan/template
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
version: "v1.0.0"
|
||||
entity:
|
||||
type: organization
|
||||
type: organisation
|
||||
role: owner
|
||||
name: "NHCarrigan"
|
||||
email: contact@nhcarrigan.com
|
||||
|
||||
@@ -754,34 +754,3 @@ describe("funding data", () => {
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
describe("every project has a funding entry", () => {
|
||||
it("should have a funding entry for every project", async() => {
|
||||
expect.hasAssertions();
|
||||
const projectData = await readFile(
|
||||
join(import.meta.dirname, "..", "data", "projects.yml"),
|
||||
"utf8",
|
||||
);
|
||||
const fundingData = await readFile(
|
||||
join(import.meta.dirname, "..", "data", "funding.yml"),
|
||||
"utf8",
|
||||
);
|
||||
const projects = parse(projectData) as Projects;
|
||||
const funding = parse(fundingData) as Funding;
|
||||
|
||||
const fundingProjectNames = funding.projects.map((project) => {
|
||||
return project.name;
|
||||
});
|
||||
|
||||
for (const project of projects) {
|
||||
if (project.premium) {
|
||||
expect(
|
||||
fundingProjectNames,
|
||||
`Premium project ${project.name} should have a funding entry`,
|
||||
).toContain(
|
||||
project.name,
|
||||
);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user