prettier/tests/typescript_non_null/__snapshots__/jsfmt.spec.js.snap

60 lines
1.2 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`member-chain.js 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 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())!;
}
`;