mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-17 10:01:20 -08:00
build(site): [SITE-07] preserve historical Codicons attribution
This commit is contained in:
1 parent
a4234230e6
commit
bf432ed62a
25 files changed
+1637
-18
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import { createHash } from 'node:crypto'
|
||||
import fs from 'node:fs'
|
||||
import { expect, test } from './fixtures.js'
|
||||
|
||||
@@ -21,6 +22,13 @@ test('mobile vConsole shows logs and upstream site notice texts are served uncha
|
||||
}
|
||||
}
|
||||
await testInfo.attach('verified-vendor-notices', { contentType: 'application/json', body: JSON.stringify(notices) })
|
||||
const provenance = JSON.parse(fs.readFileSync('refactor/baselines/site-codicons-provenance.json', 'utf8'))
|
||||
const font = await request.get(`/${provenance.fontPath.slice('docs/'.length)}`)
|
||||
expect(font.status()).toBe(200)
|
||||
expect(createHash('sha256').update(await font.body()).digest('hex')).toBe(provenance.comparisons[0].fontSha256)
|
||||
const index = await request.get('/THIRD_PARTY_NOTICES.md')
|
||||
expect(index.status()).toBe(200)
|
||||
expect(await index.text()).toContain('Included component: @vscode/codicons 0.0.26')
|
||||
await page.evaluate(() => {
|
||||
window.vConsole.destroy()
|
||||
window.art.destroy()
|
||||
|
||||
Reference in new issue
Block a user