mirror of
https://github.com/rustdesk/doc.rustdesk.com.git
synced 2026-10-26 05:50:32 +00:00
blog locale
This commit is contained in:
1 parent
1ab9d9afbb
commit
82afa32934
62 files changed
+1683
-141
No files matched your search
@@ -0,0 +1,14 @@
|
||||
import assert from 'node:assert/strict';
|
||||
import { readFile } from 'node:fs/promises';
|
||||
import test from 'node:test';
|
||||
|
||||
test('announcement resolves the latest post for the active locale', async () => {
|
||||
const source = await readFile(
|
||||
new URL('../src/components/widgets/Announcement.astro', import.meta.url),
|
||||
'utf8'
|
||||
);
|
||||
|
||||
assert.match(source, /findLatestPosts\(\{ count: 1, lang \}\)/);
|
||||
assert.doesNotMatch(source, /Enhanced ACL in RustDesk Server Pro 1\.5\.0/);
|
||||
assert.doesNotMatch(source, />NEW</);
|
||||
});
|
||||
Reference in new issue
Block a user