Skip to content

Commit

Permalink
starterBrickModUtils.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamlangford committed Aug 19, 2024
1 parent cc6e646 commit 10e9530
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/starterBricks/starterBrickModUtils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ describe("starterBrickModUtils", () => {
});

test("returns non-null values", async () => {
starterBrickRegistryLookupMock.mockResolvedValue(null);
starterBrickRegistryLookupMock.mockResolvedValue(
null as unknown as StarterBrick,
);

const result = await getContainedStarterBrickTypes(
defaultModDefinitionFactory({
Expand All @@ -85,7 +87,9 @@ describe("starterBrickModUtils", () => {
});

test("inner definition not found", async () => {
starterBrickRegistryLookupMock.mockResolvedValue(null);
starterBrickRegistryLookupMock.mockResolvedValue(
null as unknown as StarterBrick,
);

const result = await getContainedStarterBrickTypes(
defaultModDefinitionFactory({
Expand Down
1 change: 1 addition & 0 deletions src/tsconfig.strictNullChecks.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"strictNullChecks": true
},
"files": [
"./starterBricks/starterBrickModUtils.test.ts",
"./store/checkAvailableActivatedModComponents.test.ts",
"./store/editorStorage.test.ts",
"./store/sidebar/sidebarSlice.test.ts",
Expand Down

0 comments on commit 10e9530

Please sign in to comment.