60 lines
1.2 KiB
Plaintext
60 lines
1.2 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`member-chain.js - typescript-verify 1`] = `
|
|
const { somePropThatHasAReallyLongName, anotherPropThatHasALongName } = this.props.imReallySureAboutThis!;
|
|
|
|
const { somePropThatHasAReallyLongName, anotherPropThatHasALongName } = this.props.imReallySureAboutThis!.anotherObject;
|
|
|
|
this.foo.get("bar")!.doThings().more();
|
|
|
|
foo!.bar().baz().what();
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
const {
|
|
somePropThatHasAReallyLongName,
|
|
anotherPropThatHasALongName
|
|
} = this.props.imReallySureAboutThis!;
|
|
|
|
const {
|
|
somePropThatHasAReallyLongName,
|
|
anotherPropThatHasALongName
|
|
} = this.props.imReallySureAboutThis!.anotherObject;
|
|
|
|
this.foo
|
|
.get("bar")!
|
|
.doThings()
|
|
.more();
|
|
|
|
foo!
|
|
.bar()
|
|
.baz()
|
|
.what();
|
|
|
|
`;
|
|
|
|
exports[`parens.ts - typescript-verify 1`] = `
|
|
(a ? b : c) ![tokenKey];
|
|
(a || b) ![tokenKey];
|
|
(void 0)!;
|
|
|
|
async function f() {
|
|
return (await foo())!;
|
|
}
|
|
|
|
function* g() {
|
|
return (yield * foo())!;
|
|
}
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
(a ? b : c)![tokenKey];
|
|
(a || b)![tokenKey];
|
|
(void 0)!;
|
|
|
|
async function f() {
|
|
return (await foo())!;
|
|
}
|
|
|
|
function* g() {
|
|
return (yield* foo())!;
|
|
}
|
|
|
|
`;
|