Revert "Fix tests"

This reverts commit 4f6a846d94.

Accidentally pushed to `next` when working on #13853
This commit is contained in:
fisker Cheung committed 2022-11-17 22:45:35 +08:00
1 parent 4f6a846d94
commit bac69974fd
5 files changed
+44 -1

No files matched your search

@@ -392,6 +392,17 @@ interface AudioBufferList {
================================================================================
`;
exports[`methods.ts [babel-ts] format 1`] = `
"Unexpected token, expected ";" (6:10)
4 |
5 | interface Iterable<T> {
> 6 | export [Symbol.iterator](): Iterator<T>;
| ^
7 | }
8 |
9 | export class Check {"
`;
exports[`methods.ts format 1`] = `
====================================options=====================================
parsers: ["typescript"]
@@ -402,6 +413,10 @@ class X {
optionalMethod?() {}
}
interface Iterable<T> {
export [Symbol.iterator](): Iterator<T>;
}
export class Check {
private static property = 'test';
}
@@ -411,6 +426,10 @@ class X {
optionalMethod?() {}
}
interface Iterable<T> {
export [Symbol.iterator](): Iterator<T>;
}
export class Check {
private static property = "test";
}
+1 -1
View File
@@ -1,3 +1,3 @@
run_spec(import.meta, ["typescript"], {
errors: { "babel-ts": ["constructor.ts", "generics.ts"] },
errors: { "babel-ts": ["constructor.ts", "generics.ts", "methods.ts"] },
});
+4
View File
@@ -2,6 +2,10 @@ class X {
optionalMethod?() {}
}
interface Iterable<T> {
export [Symbol.iterator](): Iterator<T>;
}
export class Check {
private static property = 'test';
}
@@ -661,6 +661,23 @@ const shouldFail: { important: boolean } = output.x.children;
================================================================================
`;
exports[`modifiersOnInterfaceIndexSignature1.ts format 1`] = `
====================================options=====================================
parsers: ["typescript"]
printWidth: 80
| printWidth
=====================================input======================================
interface I {
public [a: string]: number;
}
=====================================output=====================================
interface I {
public [a: string]: number;
}
================================================================================
`;
exports[`privacyGloImport.ts format 1`] = `
====================================options=====================================
parsers: ["typescript"]
@@ -0,0 +1,3 @@
interface I {
public [a: string]: number;
}