def test_named_export(self): with create_node_service(HostingModel.stream, root_path) as instance: named_module_result = instance.invoke_export('./named-module.js', 'testModule') self.assertEqual(named_module_result, 'named-module')
def test_default_export(self): with create_node_service(HostingModel.stream, root_path) as instance: func_module_result = instance.invoke('./func-module.js') self.assertEqual(func_module_result, 'func-module')