mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
12 lines
449 B
JavaScript
12 lines
449 B
JavaScript
// eslint-disable-next-line jest/no-export
|
|
export function describeIsIdentifierStartTests(isIdentifierStartImpl) {
|
|
describe("isIdentifierStart", function () {
|
|
it("returns false if provided codepoint is NaN", function () {
|
|
expect(isIdentifierStartImpl(NaN)).toBe(false);
|
|
});
|
|
it("returns false if provided codepoint is larger than 0x10FFFF", function () {
|
|
expect(isIdentifierStartImpl(0x110000)).toBe(false);
|
|
});
|
|
});
|
|
}
|