2017-07-16 12:47:06 +03:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2018-06-30 18:15:45 +03:00
|
|
|
exports[`await.js 1`] = `
|
|
|
|
const doBothThings = async () => {
|
|
|
|
const request = doAsyncThing();
|
|
|
|
return (await request)::doSyncThing();
|
|
|
|
};
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
const doBothThings = async () => {
|
|
|
|
const request = doAsyncThing();
|
|
|
|
return (await request)::doSyncThing();
|
|
|
|
};
|
|
|
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`await.js 2`] = `
|
|
|
|
const doBothThings = async () => {
|
|
|
|
const request = doAsyncThing();
|
|
|
|
return (await request)::doSyncThing();
|
|
|
|
};
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
const doBothThings = async () => {
|
|
|
|
const request = doAsyncThing()
|
|
|
|
return (await request)::doSyncThing()
|
|
|
|
}
|
|
|
|
|
|
|
|
`;
|
|
|
|
|
2017-07-16 12:47:06 +03:00
|
|
|
exports[`bind_parens.js 1`] = `
|
|
|
|
(a || b)::c;
|
|
|
|
a || (b::c);
|
|
|
|
::obj.prop;
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
(a || b)::c;
|
|
|
|
a || b::c;
|
|
|
|
::obj.prop;
|
|
|
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`bind_parens.js 2`] = `
|
|
|
|
(a || b)::c;
|
|
|
|
a || (b::c);
|
|
|
|
::obj.prop;
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
;(a || b)::c
|
|
|
|
a || b::c
|
|
|
|
;::obj.prop
|
|
|
|
|
|
|
|
`;
|
|
|
|
|
2018-05-09 19:42:16 +03:00
|
|
|
exports[`long_name_method.js 1`] = `
|
|
|
|
class X {
|
|
|
|
constructor() {
|
|
|
|
this.testLongNameMethodAndSomethingElseLallala = ::this.testLongNameMethodAndSomethingElseLallala;
|
|
|
|
}
|
|
|
|
|
|
|
|
testLongNameMethodAndSomethingElseLallala() {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
class X {
|
|
|
|
constructor() {
|
|
|
|
this.testLongNameMethodAndSomethingElseLallala =
|
|
|
|
::this.testLongNameMethodAndSomethingElseLallala;
|
|
|
|
}
|
|
|
|
|
|
|
|
testLongNameMethodAndSomethingElseLallala() {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`long_name_method.js 2`] = `
|
|
|
|
class X {
|
|
|
|
constructor() {
|
|
|
|
this.testLongNameMethodAndSomethingElseLallala = ::this.testLongNameMethodAndSomethingElseLallala;
|
|
|
|
}
|
|
|
|
|
|
|
|
testLongNameMethodAndSomethingElseLallala() {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
class X {
|
|
|
|
constructor() {
|
|
|
|
this.testLongNameMethodAndSomethingElseLallala =
|
|
|
|
::this.testLongNameMethodAndSomethingElseLallala
|
|
|
|
}
|
|
|
|
|
|
|
|
testLongNameMethodAndSomethingElseLallala() {
|
|
|
|
return true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
`;
|
|
|
|
|
2017-07-16 12:47:06 +03:00
|
|
|
exports[`method_chain.js 1`] = `
|
|
|
|
import {interval} from 'rxjs/observable/interval';
|
|
|
|
import {filter} from 'rxjs/operator/filter';
|
|
|
|
import {take} from 'rxjs/operator/take';
|
|
|
|
import {map} from 'rxjs/operator/map';
|
|
|
|
import {throttle} from 'rxjs/operator/throttle';
|
|
|
|
import {takeUntil} from 'rxjs/operator/takeUntil';
|
|
|
|
|
|
|
|
function test(observable) {
|
|
|
|
return observable
|
|
|
|
::filter(data => data.someTest)
|
|
|
|
::throttle(() =>
|
|
|
|
interval(10)
|
|
|
|
::take(1)
|
|
|
|
::takeUntil(observable::filter(data => someOtherTest))
|
|
|
|
)
|
|
|
|
::map(someFunction);
|
|
|
|
}
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
import { interval } from "rxjs/observable/interval";
|
|
|
|
import { filter } from "rxjs/operator/filter";
|
|
|
|
import { take } from "rxjs/operator/take";
|
|
|
|
import { map } from "rxjs/operator/map";
|
|
|
|
import { throttle } from "rxjs/operator/throttle";
|
|
|
|
import { takeUntil } from "rxjs/operator/takeUntil";
|
|
|
|
|
|
|
|
function test(observable) {
|
|
|
|
return observable
|
|
|
|
::filter(data => data.someTest)
|
|
|
|
::throttle(() =>
|
|
|
|
interval(10)
|
|
|
|
::take(1)
|
|
|
|
::takeUntil(observable::filter(data => someOtherTest))
|
|
|
|
)
|
|
|
|
::map(someFunction);
|
|
|
|
}
|
|
|
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`method_chain.js 2`] = `
|
|
|
|
import {interval} from 'rxjs/observable/interval';
|
|
|
|
import {filter} from 'rxjs/operator/filter';
|
|
|
|
import {take} from 'rxjs/operator/take';
|
|
|
|
import {map} from 'rxjs/operator/map';
|
|
|
|
import {throttle} from 'rxjs/operator/throttle';
|
|
|
|
import {takeUntil} from 'rxjs/operator/takeUntil';
|
|
|
|
|
|
|
|
function test(observable) {
|
|
|
|
return observable
|
|
|
|
::filter(data => data.someTest)
|
|
|
|
::throttle(() =>
|
|
|
|
interval(10)
|
|
|
|
::take(1)
|
|
|
|
::takeUntil(observable::filter(data => someOtherTest))
|
|
|
|
)
|
|
|
|
::map(someFunction);
|
|
|
|
}
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
import { interval } from "rxjs/observable/interval"
|
|
|
|
import { filter } from "rxjs/operator/filter"
|
|
|
|
import { take } from "rxjs/operator/take"
|
|
|
|
import { map } from "rxjs/operator/map"
|
|
|
|
import { throttle } from "rxjs/operator/throttle"
|
|
|
|
import { takeUntil } from "rxjs/operator/takeUntil"
|
|
|
|
|
|
|
|
function test(observable) {
|
|
|
|
return observable
|
|
|
|
::filter(data => data.someTest)
|
|
|
|
::throttle(() =>
|
|
|
|
interval(10)
|
|
|
|
::take(1)
|
|
|
|
::takeUntil(observable::filter(data => someOtherTest))
|
|
|
|
)
|
|
|
|
::map(someFunction)
|
|
|
|
}
|
|
|
|
|
|
|
|
`;
|
2018-05-09 19:42:16 +03:00
|
|
|
|
|
|
|
exports[`short_name_method.js 1`] = `
|
|
|
|
class X {
|
|
|
|
constructor() {
|
|
|
|
this.shortMethod = ::this.shortMethod;
|
|
|
|
}
|
|
|
|
|
|
|
|
shortMethod() {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
class X {
|
|
|
|
constructor() {
|
|
|
|
this.shortMethod = ::this.shortMethod;
|
|
|
|
}
|
|
|
|
|
|
|
|
shortMethod() {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`short_name_method.js 2`] = `
|
|
|
|
class X {
|
|
|
|
constructor() {
|
|
|
|
this.shortMethod = ::this.shortMethod;
|
|
|
|
}
|
|
|
|
|
|
|
|
shortMethod() {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
class X {
|
|
|
|
constructor() {
|
|
|
|
this.shortMethod = ::this.shortMethod
|
|
|
|
}
|
|
|
|
|
|
|
|
shortMethod() {
|
|
|
|
return true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
`;
|