mirror of
https://github.com/github/semantic.git
synced 2024-12-28 09:21:35 +03:00
SomeError, not SomeExc.
This commit is contained in:
parent
90338e92fc
commit
b6252f82f5
@ -38,7 +38,7 @@ spec config = parallel $ do
|
||||
|
||||
it "fails exporting symbols not defined in the module" $ do
|
||||
(_, (_, res)) <- evaluate ["bad-export.ts", "pip.ts", "a.ts", "foo.ts"]
|
||||
res `shouldBe` Left (SomeExc (inject @(BaseError EvalError) (BaseError (ModuleInfo "foo.ts") emptySpan (ExportError "foo.ts" (name "pip")))))
|
||||
res `shouldBe` Left (SomeError (inject @(BaseError EvalError) (BaseError (ModuleInfo "foo.ts") emptySpan (ExportError "foo.ts" (name "pip")))))
|
||||
|
||||
it "evaluates early return statements" $ do
|
||||
(_, (heap, res)) <- evaluate ["early-return.ts"]
|
||||
|
Loading…
Reference in New Issue
Block a user