Skip to content

Commit e54b908

Browse files
committed
rename test
1 parent 0f1b557 commit e54b908

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/next/src/next-devtools/dev-overlay/components/errors/dev-tools-indicator/dev-tools-indicator.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,15 +412,15 @@ function DevToolsPopover({
412412
onClick={() => setOpen(OVERLAYS.Preferences)}
413413
index={isTurbopack ? 2 : 3}
414414
/>
415-
{process.env.__NEXT_DEVTOOL_SEGMENT_EXPLORER && (
415+
{process.env.__NEXT_DEVTOOL_SEGMENT_EXPLORER ? (
416416
<MenuItem
417417
data-segment-explorer
418418
label="Route Info"
419419
value={<ChevronRight />}
420420
onClick={() => setOpen(OVERLAYS.SegmentExplorer)}
421421
index={isTurbopack ? 3 : 4}
422422
/>
423-
)}
423+
) : null}
424424
</div>
425425
</Context.Provider>
426426
</div>

test/development/app-dir/segment-explorer/segment-explorer.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ describe('segment-explorer', () => {
108108
`)
109109
})
110110

111-
it('should indicate segment explorer is not available pages router', async () => {
111+
it('should indicate segment explorer is not available for pages router', async () => {
112112
const browser = await next.browser('/pages-router')
113113
expect(await getSegmentExplorerContent(browser)).toMatchInlineSnapshot(
114114
`"Route Info currently is only available for the App Router."`

0 commit comments

Comments
 (0)