Skip to content

Commit 4283437

Browse files
committed
Tests: Switch from Literal to CustomType for pluggability test
Nitpicky, but it does make things more clear
1 parent cb3f42d commit 4283437

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/pluggability.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { print } from '../src';
55
test('custom printers work', () => {
66
/** @type {Handlers} */
77
const funkyStringPrinter = {
8-
Literal(node, state) {
8+
CustomType(node, state) {
99
if (typeof node.value === 'string') {
1010
state.commands.push(`:) - `);
1111

@@ -18,7 +18,7 @@ test('custom printers work', () => {
1818

1919
const { code } = print(
2020
{
21-
type: 'Literal',
21+
type: 'CustomType',
2222
value: 'testing 123'
2323
},
2424
{

0 commit comments

Comments
 (0)