manaba-enhanced
manaba-enhanced copied to clipboard
test: add `chrome` object to `globals`
Resolved a problem with the chrome
object causing a reference error when running the test suite with Jest.
❯ npx jest
FAIL src/methods/ReportTemplateGenerator.test.ts
● Test suite failed to run
ReferenceError: chrome is not defined
111 | \\begin{document}
112 | \\title{{{course-name}}\\\\{{report-title}}}
> 113 | \\author{{{student-name}}\\\\${chrome.i18n.getMessage(
| ^
114 | "report_template_student_code"
115 | )}}
116 | \\lstset{
at Object.chrome (src/methods/ReportTemplateGenerator.tsx:113:32)
at Object.<anonymous> (src/methods/ReportTemplateGenerator.test.ts:5:34)
Code Climate has analyzed commit f91b4797 and detected 0 issues on this pull request.
View more on Code Climate.