mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
8 lines
326 B
TypeScript
8 lines
326 B
TypeScript
import { highlightJavaScript 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);
|
|
});
|