Benign repos Download

rendering.test.ts

Calls JavaScript readFile APIJavaScript comment contains a URL
SHA-2563b59c3e9135dcf0a2f82ec0770eb16cefe996b266326682ce56f79a8a77de257
MaleculeH₂(Cm₃F)

Evidence

it() function call lines 1–15
1import { retry } from 'next-test-utils'
2import { nextTestSetup } from 'e2e-utils'
3
4describe('Document and App - Rendering via HTTP', () => {
5 const { next, isNextDev } = nextTestSetup({
6 files: __dirname,
7 })
8
9 describe('_document', () => {
10 it('should include required elements in rendered html', async () => {
11 const $ = await next.render$('/')
12 // It has a custom html class
13 expect($('html').hasClass('test-html-props')).toBe(true)
14 // It has a custom body class
15 exp …
English function-word token "with" lines 47–52
47 })
48 })
49
50 it('renders ctx.renderPage with enhancer correctly', async () => {
51 const $ = await next.render$('/?withEnhancer=true')
52 …
English function-word token "for" lines 105–110
105:23… -app').text()).toBe('Hello App')
106 })
107
108 // For example react context uses shared module state
109 // Also known as singleton modules
110 it('s …
Calls JavaScript readFile API lines 116–127
116:63… alProps', async () => {
117 const errMsg = 'have an error from _app getInitialProps'
118 const origContent = await next.readFile('pages/_app.js')
119
120 expect(await next.render('/')).toContain('page-index')
⋯7 lines

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.