c77d0a8e89
Build & Push / Build & Push Docker Image (push) Failing after 10m39s
Replace storefront naming across source, tests, docs, config, and production scripts. Rename the legacy top-level app directory and Carplace component files, remove duplicate storefront startup scripts, and refresh the lockfile.
16 lines
614 B
TypeScript
16 lines
614 B
TypeScript
import fs from 'node:fs'
|
|
import { fileURLToPath } from 'node:url'
|
|
import { describe, expect, it } from 'vitest'
|
|
|
|
describe('carplace public page layout', () => {
|
|
it('keeps the navbar and footer in reusable component modules', () => {
|
|
const layoutPath = fileURLToPath(new URL('./SitePageLayout.tsx', import.meta.url))
|
|
const source = fs.readFileSync(layoutPath, 'utf8')
|
|
|
|
expect(source).toContain("import SiteNavbar from './SiteNavbar'")
|
|
expect(source).toContain("import SiteFooter from './SiteFooter'")
|
|
expect(source).toContain('<SiteNavbar')
|
|
expect(source).toContain('<SiteFooter')
|
|
})
|
|
})
|