Skip to content

Commit

Permalink
Fix analysis errors
Browse files Browse the repository at this point in the history
  • Loading branch information
vocksel committed Dec 24, 2024
1 parent 7851164 commit 2899708
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/ModuleLoader.spec.luau
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ describeEach({
"loadmodule",
})("%s", function(loadingStrategy)
if loadingStrategy == "loadmodule" and not loadModuleEnabled then
test = test.skip
test = test.skip :: any
end

beforeEach(function()
Expand Down Expand Up @@ -223,17 +223,17 @@ describeEach({
[tree.Module1] = true,
},
})
expect(loader._moduleRegistry.getByInstance(tree.Module1)).toMatchObject({
expect(loader._moduleRegistry.getByInstance(tree.Module1 :: ModuleScript)).toMatchObject({
dependencies = {
[tree.Module2] = true,
},
})
expect(loader._moduleRegistry.getByInstance(tree.Module2)).toMatchObject({
expect(loader._moduleRegistry.getByInstance(tree.Module2 :: ModuleScript)).toMatchObject({
dependencies = {
[tree.Module3] = true,
},
})
expect(loader._moduleRegistry.getByInstance(tree.Module3)).toMatchObject({
expect(loader._moduleRegistry.getByInstance(tree.Module3 :: ModuleScript)).toMatchObject({
dependencies = {},
})
end)
Expand Down Expand Up @@ -508,7 +508,7 @@ describeEach({
end)

loader:require(tree.Consumer)
loader:clearModule(tree.Module3)
loader:clearModule(tree.Module3 :: ModuleScript)

expect(count).toBe(4)
end)
Expand Down Expand Up @@ -650,8 +650,8 @@ describeEach({

expect(loader._moduleRegistry.getByInstance(mockRuntime)).toBeDefined()
expect(loader._moduleRegistry.getByInstance(tree.Shared)).toBeUndefined()
expect(loader._moduleRegistry.getByInstance(tree.Module1)).toBeUndefined()
expect(loader._moduleRegistry.getByInstance(tree.Module2)).toBeUndefined()
expect(loader._moduleRegistry.getByInstance(tree.Module1 :: ModuleScript)).toBeUndefined()
expect(loader._moduleRegistry.getByInstance(tree.Module2 :: ModuleScript)).toBeUndefined()
expect(loader._moduleRegistry.getByInstance(tree.Root)).toBeUndefined()
end)

Expand Down

0 comments on commit 2899708

Please sign in to comment.