Add tests (#18042)
This commit is contained in:
1 parent
ae43bcf68c
commit
b82c542a06
4 files changed
+117
No files matched your search
@@ -3667,6 +3667,11 @@ margin
|
||||
size: A4 portrait;
|
||||
}
|
||||
|
||||
@page:first
|
||||
{
|
||||
counter-reset: page 1;
|
||||
}
|
||||
|
||||
=====================================output=====================================
|
||||
@page {
|
||||
margin: 1cm;
|
||||
@@ -3708,6 +3713,10 @@ margin
|
||||
size: A4 portrait;
|
||||
}
|
||||
|
||||
@page:first {
|
||||
counter-reset: page 1;
|
||||
}
|
||||
|
||||
================================================================================
|
||||
`;
|
||||
|
||||
|
||||
@@ -67,3 +67,8 @@ margin
|
||||
@page vertical {
|
||||
size: A4 portrait;
|
||||
}
|
||||
|
||||
@page:first
|
||||
{
|
||||
counter-reset: page 1;
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
type A = (
|
||||
/** @deprecated */
|
||||
() => void
|
||||
);
|
||||
type B = (
|
||||
/** @deprecated */
|
||||
new () => void
|
||||
);
|
||||
type C = (
|
||||
/** @deprecated */
|
||||
<T>() => void
|
||||
);
|
||||
type D = (
|
||||
/** @deprecated */
|
||||
new <T>() => void
|
||||
);
|
||||
|
||||
type A2 = (
|
||||
/** comment */
|
||||
() => void
|
||||
);
|
||||
type B2 = (
|
||||
/** comment */
|
||||
new () => void
|
||||
);
|
||||
type C2 = (
|
||||
/** comment */
|
||||
<T>() => void
|
||||
);
|
||||
type D2 = (
|
||||
/** comment */
|
||||
new <T>() => void
|
||||
);
|
||||
@@ -1,5 +1,75 @@
|
||||
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
||||
|
||||
exports[`10260.ts format 1`] = `
|
||||
====================================options=====================================
|
||||
parsers: ["typescript"]
|
||||
printWidth: 80
|
||||
| printWidth
|
||||
=====================================input======================================
|
||||
type A = (
|
||||
/** @deprecated */
|
||||
() => void
|
||||
);
|
||||
type B = (
|
||||
/** @deprecated */
|
||||
new () => void
|
||||
);
|
||||
type C = (
|
||||
/** @deprecated */
|
||||
<T>() => void
|
||||
);
|
||||
type D = (
|
||||
/** @deprecated */
|
||||
new <T>() => void
|
||||
);
|
||||
|
||||
type A2 = (
|
||||
/** comment */
|
||||
() => void
|
||||
);
|
||||
type B2 = (
|
||||
/** comment */
|
||||
new () => void
|
||||
);
|
||||
type C2 = (
|
||||
/** comment */
|
||||
<T>() => void
|
||||
);
|
||||
type D2 = (
|
||||
/** comment */
|
||||
new <T>() => void
|
||||
);
|
||||
|
||||
=====================================output=====================================
|
||||
type A =
|
||||
/** @deprecated */
|
||||
() => void;
|
||||
type B =
|
||||
/** @deprecated */
|
||||
new () => void;
|
||||
type C =
|
||||
/** @deprecated */
|
||||
<T>() => void;
|
||||
type D =
|
||||
/** @deprecated */
|
||||
new <T>() => void;
|
||||
|
||||
type A2 =
|
||||
/** comment */
|
||||
() => void;
|
||||
type B2 =
|
||||
/** comment */
|
||||
new () => void;
|
||||
type C2 =
|
||||
/** comment */
|
||||
<T>() => void;
|
||||
type D2 =
|
||||
/** comment */
|
||||
new <T>() => void;
|
||||
|
||||
================================================================================
|
||||
`;
|
||||
|
||||
exports[`11662.ts format 1`] = `
|
||||
====================================options=====================================
|
||||
parsers: ["typescript"]
|
||||
|
||||
Reference in new issue
Block a user