mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
8 lines
347 B
TypeScript
8 lines
347 B
TypeScript
import { quickAndDirtyJavaScriptSyntaxHighlighter as highlighter } from "bun:internal-for-testing";
|
|
import { expect, test } from "bun:test";
|
|
|
|
test("highlighter", () => {
|
|
expect(highlighter("`can do ${123} ${'123'} ${`123`}`").length).toBeLessThan(150);
|
|
expect(highlighter("`can do ${123} ${'123'} ${`123`}`123").length).toBeLessThan(150);
|
|
});
|