mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
Co-authored-by: liuxingbaoyu <[email protected]> Co-authored-by: Nicolò Ribaudo <[email protected]>
17 lines
476 B
JavaScript
17 lines
476 B
JavaScript
import * as t from "@babel/types";
|
|
import _Printer from "../lib/printer.js";
|
|
const Printer = _Printer.default || _Printer;
|
|
|
|
describe("Printer", () => {
|
|
it("completeness", function () {
|
|
Object.keys(t.VISITOR_KEYS).forEach(function (type) {
|
|
expect(Printer.prototype[type]).toBeTruthy();
|
|
});
|
|
|
|
Object.keys(Printer.prototype).forEach(function (type) {
|
|
if (!/[A-Z]/.test(type[0])) return;
|
|
expect(t.VISITOR_KEYS[type]).toBeTruthy();
|
|
});
|
|
});
|
|
});
|