2017-05-26 22:03:27 +03:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2018-07-03 09:06:29 +03:00
|
|
|
exports[`member-chain.js - typescript-verify 1`] = `
|
2017-12-10 07:41:53 +03:00
|
|
|
const { somePropThatHasAReallyLongName, anotherPropThatHasALongName } = this.props.imReallySureAboutThis!;
|
|
|
|
|
|
|
|
const { somePropThatHasAReallyLongName, anotherPropThatHasALongName } = this.props.imReallySureAboutThis!.anotherObject;
|
2018-02-20 18:37:11 +03:00
|
|
|
|
|
|
|
this.foo.get("bar")!.doThings().more();
|
2018-02-26 21:12:03 +03:00
|
|
|
|
|
|
|
foo!.bar().baz().what();
|
2017-12-10 07:41:53 +03:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
const {
|
|
|
|
somePropThatHasAReallyLongName,
|
|
|
|
anotherPropThatHasALongName
|
|
|
|
} = this.props.imReallySureAboutThis!;
|
|
|
|
|
|
|
|
const {
|
|
|
|
somePropThatHasAReallyLongName,
|
|
|
|
anotherPropThatHasALongName
|
|
|
|
} = this.props.imReallySureAboutThis!.anotherObject;
|
|
|
|
|
2018-02-20 18:37:11 +03:00
|
|
|
this.foo
|
|
|
|
.get("bar")!
|
|
|
|
.doThings()
|
|
|
|
.more();
|
|
|
|
|
2018-02-26 21:12:03 +03:00
|
|
|
foo!
|
|
|
|
.bar()
|
|
|
|
.baz()
|
|
|
|
.what();
|
|
|
|
|
2017-12-10 07:41:53 +03:00
|
|
|
`;
|
|
|
|
|
2018-07-03 09:06:29 +03:00
|
|
|
exports[`parens.ts - typescript-verify 1`] = `
|
2017-05-26 22:03:27 +03:00
|
|
|
(a ? b : c) ![tokenKey];
|
|
|
|
(a || b) ![tokenKey];
|
2018-02-17 16:22:35 +03:00
|
|
|
(void 0)!;
|
2017-06-15 02:34:12 +03:00
|
|
|
|
|
|
|
async function f() {
|
|
|
|
return (await foo())!;
|
|
|
|
}
|
|
|
|
|
|
|
|
function* g() {
|
|
|
|
return (yield * foo())!;
|
|
|
|
}
|
2017-05-26 22:03:27 +03:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
(a ? b : c)![tokenKey];
|
|
|
|
(a || b)![tokenKey];
|
2018-02-17 16:22:35 +03:00
|
|
|
(void 0)!;
|
2017-05-26 22:03:27 +03:00
|
|
|
|
2017-06-15 02:34:12 +03:00
|
|
|
async function f() {
|
|
|
|
return (await foo())!;
|
|
|
|
}
|
|
|
|
|
|
|
|
function* g() {
|
|
|
|
return (yield* foo())!;
|
|
|
|
}
|
|
|
|
|
2017-05-26 22:03:27 +03:00
|
|
|
`;
|