fix(es/testing): Ensure that we call fold_program (#7222)

This commit is contained in:
Donny/강동윤 2023-04-07 10:44:50 +09:00 committed by GitHub
parent 68751600ae
commit e241201bf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -177,11 +177,11 @@ impl<'a> Tester<'a> {
res?
};
let module = module
let module = Program::Module(module)
.fold_with(&mut tr)
.fold_with(&mut as_folder(Normalizer));
Ok(module)
Ok(module.expect_module())
}
pub fn print(&mut self, module: &Module, comments: &Rc<SingleThreadedComments>) -> String {