123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841 |
- // Jest Snapshot v1, https://goo.gl/fbAQLP
- exports[`bracket_0.js 1`] = `
- function a() {
- function b() {
- queryThenMutateDOM(
- () => {
- title = SomeThing.call(root, 'someLongStringThatPushesThisTextReallyFar')[0];
- }
- );
- }
- }
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- function a() {
- function b() {
- queryThenMutateDOM(() => {
- title = SomeThing.call(
- root,
- "someLongStringThatPushesThisTextReallyFar"
- )[0];
- });
- }
- }
- `;
- exports[`break-last-call.js 1`] = `
- export default store => {
- return callApi(endpoint, schema).then(
- response => next(actionWith({
- response,
- type: successType
- })),
- error => next(actionWith({
- type: failureType,
- error: error.message || 'Something bad happened'
- }))
- )
- }
- it('should group messages with same created time', () => {
- expect(
- groupMessages(messages).toJS(),
- ).toEqual({
- '11/01/2017 13:36': [
- {message: 'test', messageType: 'SMS', status: 'Unknown', created: '11/01/2017 13:36'},
- {message: 'test', messageType: 'Email', status: 'Unknown', created: '11/01/2017 13:36'},
- ],
- '09/01/2017 17:25': [
- {message: 'te', messageType: 'SMS', status: 'Unknown', created: '09/01/2017 17:25'},
- {message: 'te', messageType: 'Email', status: 'Unknown', created: '09/01/2017 17:25'},
- ],
- '11/01/2017 13:33': [
- {message: 'test', messageType: 'SMS', status: 'Unknown', created: '11/01/2017 13:33'},
- {message: 'test', messageType: 'Email', status: 'Unknown', created: '11/01/2017 13:33'},
- ],
- '11/01/2017 13:37': [
- {message: 'test', messageType: 'SMS', status: 'Unknown', created: '11/01/2017 13:37'},
- {message: 'test', messageType: 'Email', status: 'Unknown', created: '11/01/2017 13:37'},
- ],
- });
- });
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- export default store => {
- return callApi(endpoint, schema).then(
- response =>
- next(
- actionWith({
- response,
- type: successType
- })
- ),
- error =>
- next(
- actionWith({
- type: failureType,
- error: error.message || "Something bad happened"
- })
- )
- );
- };
- it("should group messages with same created time", () => {
- expect(groupMessages(messages).toJS()).toEqual({
- "11/01/2017 13:36": [
- {
- message: "test",
- messageType: "SMS",
- status: "Unknown",
- created: "11/01/2017 13:36"
- },
- {
- message: "test",
- messageType: "Email",
- status: "Unknown",
- created: "11/01/2017 13:36"
- }
- ],
- "09/01/2017 17:25": [
- {
- message: "te",
- messageType: "SMS",
- status: "Unknown",
- created: "09/01/2017 17:25"
- },
- {
- message: "te",
- messageType: "Email",
- status: "Unknown",
- created: "09/01/2017 17:25"
- }
- ],
- "11/01/2017 13:33": [
- {
- message: "test",
- messageType: "SMS",
- status: "Unknown",
- created: "11/01/2017 13:33"
- },
- {
- message: "test",
- messageType: "Email",
- status: "Unknown",
- created: "11/01/2017 13:33"
- }
- ],
- "11/01/2017 13:37": [
- {
- message: "test",
- messageType: "SMS",
- status: "Unknown",
- created: "11/01/2017 13:37"
- },
- {
- message: "test",
- messageType: "Email",
- status: "Unknown",
- created: "11/01/2017 13:37"
- }
- ]
- });
- });
- `;
- exports[`break-last-member.js 1`] = `
- SomeVeryLongUpperCaseConstant.someVeryLongCallExpression().some_very_long_member_expression
- weNeedToReachTheEightyCharacterLimitXXXXXXXXXXXXXXXXX.someNode
- .childrenInAnArray[0];
- superSupersuperSupersuperSupersuperSupersuperSuperLong.exampleOfOrderOfGetterAndSetterReordered;
- superSupersuperSupersuperSupersuperSupersuperSuperLong.exampleOfOrderOfGetterAndSetterReordered[0];
- expect(
- findDOMNode(component.instance()).getElementsByClassName(styles.inner)[0].style.paddingRight
- ).toBe('1000px');
- const { course, conflicts = [], index, scheduleId, studentId, something } = a.this.props;
- const { course, conflicts = [], index, scheduleId, studentId, something } = this.props;
- const {
- updated,
- author: { identifier: ownerId },
- location,
- category: categories,
- } = rawAd.entry;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- SomeVeryLongUpperCaseConstant.someVeryLongCallExpression()
- .some_very_long_member_expression;
- weNeedToReachTheEightyCharacterLimitXXXXXXXXXXXXXXXXX.someNode
- .childrenInAnArray[0];
- superSupersuperSupersuperSupersuperSupersuperSuperLong.exampleOfOrderOfGetterAndSetterReordered;
- superSupersuperSupersuperSupersuperSupersuperSuperLong
- .exampleOfOrderOfGetterAndSetterReordered[0];
- expect(
- findDOMNode(component.instance()).getElementsByClassName(styles.inner)[0]
- .style.paddingRight
- ).toBe("1000px");
- const {
- course,
- conflicts = [],
- index,
- scheduleId,
- studentId,
- something
- } = a.this.props;
- const {
- course,
- conflicts = [],
- index,
- scheduleId,
- studentId,
- something
- } = this.props;
- const {
- updated,
- author: { identifier: ownerId },
- location,
- category: categories
- } = rawAd.entry;
- `;
- exports[`break-multiple.js 1`] = `
- object.foo().bar().baz();
- foo().bar().baz();
- foo().bar.baz();
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- object
- .foo()
- .bar()
- .baz();
- foo()
- .bar()
- .baz();
- foo().bar.baz();
- `;
- exports[`comment.js 1`] = `
- function f() {
- return observableFromSubscribeFunction()
- // Debounce manually rather than using editor.onDidStopChanging so that the debounce time is
- // configurable.
- .debounceTime(debounceInterval);
- }
- _.a(a)
- /* very very very very very very very long such that it is longer than 80 columns */
- .a()
- _.a(
- a
- )/* very very very very very very very long such that it is longer than 80 columns */
- .a();
- _.a(
- a
- ) /* very very very very very very very long such that it is longer than 80 columns */.a();
- Something
- // $FlowFixMe(>=0.41.0)
- .getInstance(this.props.dao)
- .getters()
- // Warm-up first
- measure()
- .then(() => {
- SomethingLong();
- });
- measure() // Warm-up first
- .then(() => {
- SomethingLong();
- });
- const configModel = this.baseConfigurationService.getCache().consolidated // global/default values (do NOT modify)
- .merge(this.cachedWorkspaceConfig);
- this.doWriteConfiguration(target, value, options) // queue up writes to prevent race conditions
- .then(() => null,
- error => {
- return options.donotNotifyError ? TPromise.wrapError(error) : this.onError(error, target, value);
- });
- ret = __DEV__ ?
- // $FlowFixMe: this type differs according to the env
- vm.runInContext(source, ctx)
- : a
- this.firebase.object(\`/shops/\${shopLocation.shop}\`)
- // keep distance info
- .first((shop: ShopQueryResult, index: number, source: Observable<ShopQueryResult>): any => {
- // add distance to result
- const s = shop;
- s.distance = shopLocation.distance;
- return s;
- });
- angular.module('AngularAppModule')
- // Hello, I am comment.
- .constant('API_URL', 'http://localhost:8080/api');
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- function f() {
- return (
- observableFromSubscribeFunction()
- // Debounce manually rather than using editor.onDidStopChanging so that the debounce time is
- // configurable.
- .debounceTime(debounceInterval)
- );
- }
- _.a(a)
- /* very very very very very very very long such that it is longer than 80 columns */
- .a();
- _.a(
- a
- ) /* very very very very very very very long such that it is longer than 80 columns */
- .a();
- _.a(
- a
- ) /* very very very very very very very long such that it is longer than 80 columns */
- .a();
- Something
- // $FlowFixMe(>=0.41.0)
- .getInstance(this.props.dao)
- .getters();
- // Warm-up first
- measure().then(() => {
- SomethingLong();
- });
- measure() // Warm-up first
- .then(() => {
- SomethingLong();
- });
- const configModel = this.baseConfigurationService
- .getCache()
- .consolidated // global/default values (do NOT modify)
- .merge(this.cachedWorkspaceConfig);
- this.doWriteConfiguration(target, value, options) // queue up writes to prevent race conditions
- .then(
- () => null,
- error => {
- return options.donotNotifyError
- ? TPromise.wrapError(error)
- : this.onError(error, target, value);
- }
- );
- ret = __DEV__
- ? // $FlowFixMe: this type differs according to the env
- vm.runInContext(source, ctx)
- : a;
- this.firebase
- .object(\`/shops/\${shopLocation.shop}\`)
- // keep distance info
- .first(
- (
- shop: ShopQueryResult,
- index: number,
- source: Observable<ShopQueryResult>
- ): any => {
- // add distance to result
- const s = shop;
- s.distance = shopLocation.distance;
- return s;
- }
- );
- angular
- .module("AngularAppModule")
- // Hello, I am comment.
- .constant("API_URL", "http://localhost:8080/api");
- `;
- exports[`computed.js 1`] = `
- nock(/test/)
- .matchHeader('Accept', 'application/json')
- [httpMethodNock(method)]('/foo')
- .reply(200, {
- foo: 'bar',
- });
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- nock(/test/)
- .matchHeader("Accept", "application/json")
- [httpMethodNock(method)]("/foo")
- .reply(200, {
- foo: "bar"
- });
- `;
- exports[`computed-merge.js 1`] = `
- [].forEach(key => {
- data[key]('foo')
- .then(() => console.log('bar'))
- .catch(() => console.log('baz'));
- });
- [].forEach(key => {
- data('foo')
- [key]('bar')
- .then(() => console.log('bar'))
- .catch(() => console.log('baz'));
- });
- window.Data[key]("foo")
- .then(() => a)
- .catch(() => b);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- [].forEach(key => {
- data[key]("foo")
- .then(() => console.log("bar"))
- .catch(() => console.log("baz"));
- });
- [].forEach(key => {
- data("foo")
- [key]("bar")
- .then(() => console.log("bar"))
- .catch(() => console.log("baz"));
- });
- window.Data[key]("foo")
- .then(() => a)
- .catch(() => b);
- `;
- exports[`conditional.js 1`] = `
- (a ? b : c).d();
- (a ? b : c).d().e();
- (a ? b : c).d().e().f();
- (valid
- ? helper.responseBody(this.currentUser)
- : helper.responseBody(this.defaultUser))
- .map();
- (valid
- ? helper.responseBody(this.currentUser)
- : helper.responseBody(this.defaultUser))
- .map().filter();
- (valid
- ? helper.responseBody(this.currentUser)
- : helper.responseBody(defaultUser))
- .map();
- object[valid
- ? helper.responseBody(this.currentUser)
- : helper.responseBody(defaultUser)]
- .map();
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- (a ? b : c).d();
- (a ? b : c).d().e();
- (a ? b : c)
- .d()
- .e()
- .f();
- (valid
- ? helper.responseBody(this.currentUser)
- : helper.responseBody(this.defaultUser)
- ).map();
- (valid
- ? helper.responseBody(this.currentUser)
- : helper.responseBody(this.defaultUser)
- )
- .map()
- .filter();
- (valid
- ? helper.responseBody(this.currentUser)
- : helper.responseBody(defaultUser)
- ).map();
- object[
- valid
- ? helper.responseBody(this.currentUser)
- : helper.responseBody(defaultUser)
- ].map();
- `;
- exports[`d3.js 1`] = `
- d3.select('body')
- .append('circle')
- .at({ width: 30, fill: '#f0f' })
- .st({ fontWeight: 600 })
- d3.scaleLinear()
- .domain([1950, 1980])
- .range([0, width])
- not.d3.select('body')
- .append('circle')
- .at({ width: 30, fill: '#f0f' })
- .st({ fontWeight: 600 })
- not.d3.scaleLinear()
- .domain([1950, 1980])
- .range([0, width])
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- d3.select("body")
- .append("circle")
- .at({ width: 30, fill: "#f0f" })
- .st({ fontWeight: 600 });
- d3.scaleLinear()
- .domain([1950, 1980])
- .range([0, width]);
- not.d3
- .select("body")
- .append("circle")
- .at({ width: 30, fill: "#f0f" })
- .st({ fontWeight: 600 });
- not.d3
- .scaleLinear()
- .domain([1950, 1980])
- .range([0, width]);
- `;
- exports[`first_long.js 1`] = `
- export default function theFunction(action$, store) {
- return action$.ofType(THE_ACTION).switchMap(action => Observable
- .webSocket({
- url: THE_URL,
- more: stuff(),
- evenMore: stuff({
- value1: true,
- value2: false,
- value3: false
- })
- })
- .filter(data => theFilter(data))
- .map(({ theType, ...data }) => theMap(theType, data))
- .retryWhen(errors => errors));
- }
- function f() {
- return this._getWorker(workerOptions)({
- filePath,
- hasteImplModulePath: this._options.hasteImplModulePath,
- }).then(
- metadata => {
- // \`1\` for truthy values instead of \`true\` to save cache space.
- fileMetadata[H.VISITED] = 1;
- const metadataId = metadata.id;
- const metadataModule = metadata.module;
- if (metadataId && metadataModule) {
- fileMetadata[H.ID] = metadataId;
- setModule(metadataId, metadataModule);
- }
- fileMetadata[H.DEPENDENCIES] = metadata.dependencies || [];
- }
- );
- }
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- export default function theFunction(action$, store) {
- return action$.ofType(THE_ACTION).switchMap(action =>
- Observable.webSocket({
- url: THE_URL,
- more: stuff(),
- evenMore: stuff({
- value1: true,
- value2: false,
- value3: false
- })
- })
- .filter(data => theFilter(data))
- .map(({ theType, ...data }) => theMap(theType, data))
- .retryWhen(errors => errors)
- );
- }
- function f() {
- return this._getWorker(workerOptions)({
- filePath,
- hasteImplModulePath: this._options.hasteImplModulePath
- }).then(metadata => {
- // \`1\` for truthy values instead of \`true\` to save cache space.
- fileMetadata[H.VISITED] = 1;
- const metadataId = metadata.id;
- const metadataModule = metadata.module;
- if (metadataId && metadataModule) {
- fileMetadata[H.ID] = metadataId;
- setModule(metadataId, metadataModule);
- }
- fileMetadata[H.DEPENDENCIES] = metadata.dependencies || [];
- });
- }
- `;
- exports[`inline_merge.js 1`] = `
- Object.keys(
- availableLocales({
- test: true
- })
- )
- .forEach(locale => {
- // ...
- });
- this.layoutPartsToHide = this.utils.hashset(
- _.flatMap(this.visibilityHandlers, fn => fn())
- .concat(this.record.resolved_legacy_visrules)
- .filter(Boolean)
- );
- var jqxhr = $.ajax("example.php")
- .done(doneFn)
- .fail(failFn);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Object.keys(
- availableLocales({
- test: true
- })
- ).forEach(locale => {
- // ...
- });
- this.layoutPartsToHide = this.utils.hashset(
- _.flatMap(this.visibilityHandlers, fn => fn())
- .concat(this.record.resolved_legacy_visrules)
- .filter(Boolean)
- );
- var jqxhr = $.ajax("example.php")
- .done(doneFn)
- .fail(failFn);
- `;
- exports[`logical.js 1`] = `
- const someLongVariableName = (idx(
- this.props,
- props => props.someLongPropertyName
- ) || []
- ).map(edge => edge.node);
- (veryLongVeryLongVeryLong || e).map(tickets =>
- TicketRecord.createFromSomeLongString());
- (veryLongVeryLongVeryLong || e).map(tickets =>
- TicketRecord.createFromSomeLongString()).filter(obj => !!obj);
- (veryLongVeryLongVeryLong || anotherVeryLongVeryLongVeryLong || veryVeryVeryLongError).map(tickets =>
- TicketRecord.createFromSomeLongString());
- (veryLongVeryLongVeryLong || anotherVeryLongVeryLongVeryLong || veryVeryVeryLongError).map(tickets =>
- TicketRecord.createFromSomeLongString()).filter(obj => !!obj);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- const someLongVariableName = (
- idx(this.props, props => props.someLongPropertyName) || []
- ).map(edge => edge.node);
- (veryLongVeryLongVeryLong || e).map(tickets =>
- TicketRecord.createFromSomeLongString()
- );
- (veryLongVeryLongVeryLong || e)
- .map(tickets => TicketRecord.createFromSomeLongString())
- .filter(obj => !!obj);
- (
- veryLongVeryLongVeryLong ||
- anotherVeryLongVeryLongVeryLong ||
- veryVeryVeryLongError
- ).map(tickets => TicketRecord.createFromSomeLongString());
- (
- veryLongVeryLongVeryLong ||
- anotherVeryLongVeryLongVeryLong ||
- veryVeryVeryLongError
- )
- .map(tickets => TicketRecord.createFromSomeLongString())
- .filter(obj => !!obj);
- `;
- exports[`multiple-members.js 1`] = `
- if (testConfig.ENABLE_ONLINE_TESTS === "true") {
- describe("POST /users/me/pet", function() {
- it("saves pet", function() {
- function assert(pet) {
- expect(pet).to.have.property("OwnerAddress").that.deep.equals({
- AddressLine1: "Alexanderstrasse",
- AddressLine2: "",
- PostalCode: "10999",
- Region: "Berlin",
- City: "Berlin",
- Country: "DE"
- });
- }
- });
- });
- }
- wrapper.find('SomewhatLongNodeName').prop('longPropFunctionName')().then(function() {
- doSomething();
- });
- wrapper.find('SomewhatLongNodeName').prop('longPropFunctionName')('argument').then(function() {
- doSomething();
- });
- wrapper.find('SomewhatLongNodeName').prop('longPropFunctionName', 'second argument that pushes this group past 80 characters')('argument').then(function() {
- doSomething();
- });
- wrapper.find('SomewhatLongNodeName').prop('longPropFunctionName')('argument', 'second argument that pushes this group past 80 characters').then(function() {
- doSomething();
- });
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- if (testConfig.ENABLE_ONLINE_TESTS === "true") {
- describe("POST /users/me/pet", function() {
- it("saves pet", function() {
- function assert(pet) {
- expect(pet)
- .to.have.property("OwnerAddress")
- .that.deep.equals({
- AddressLine1: "Alexanderstrasse",
- AddressLine2: "",
- PostalCode: "10999",
- Region: "Berlin",
- City: "Berlin",
- Country: "DE"
- });
- }
- });
- });
- }
- wrapper
- .find("SomewhatLongNodeName")
- .prop("longPropFunctionName")()
- .then(function() {
- doSomething();
- });
- wrapper
- .find("SomewhatLongNodeName")
- .prop("longPropFunctionName")("argument")
- .then(function() {
- doSomething();
- });
- wrapper
- .find("SomewhatLongNodeName")
- .prop(
- "longPropFunctionName",
- "second argument that pushes this group past 80 characters"
- )("argument")
- .then(function() {
- doSomething();
- });
- wrapper
- .find("SomewhatLongNodeName")
- .prop("longPropFunctionName")(
- "argument",
- "second argument that pushes this group past 80 characters"
- )
- .then(function() {
- doSomething();
- });
- `;
- exports[`short-names.js 1`] = `
- const svgJsFiles = fs
- .readdirSync(svgDir)
- .filter(f => svgJsFileExtRegex.test(f))
- .map(f => path.join(svgDir, f));
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- const svgJsFiles = fs
- .readdirSync(svgDir)
- .filter(f => svgJsFileExtRegex.test(f))
- .map(f => path.join(svgDir, f));
- `;
- exports[`square_0.js 1`] = `
- const version = someLongString
- .split('jest version =')
- .pop()
- .split(EOL)[0]
- .trim();
- const component = find('.org-lclp-edit-copy-url-banner__link')[0]
- .getAttribute('href')
- .indexOf(this.landingPageLink);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- const version = someLongString
- .split("jest version =")
- .pop()
- .split(EOL)[0]
- .trim();
- const component = find(".org-lclp-edit-copy-url-banner__link")[0]
- .getAttribute("href")
- .indexOf(this.landingPageLink);
- `;
- exports[`test.js 1`] = `
- method().then(x => x)
- ["abc"](x => x)
- [abc](x => x);
- ({}.a().b());
- ({}).a().b();
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- method()
- .then(x => x)
- ["abc"](x => x)
- [abc](x => x);
- ({}.a().b());
- ({}.a().b());
- `;
- exports[`this.js 1`] = `
- const sel = this.connections
- .concat(this.activities.concat(this.operators))
- .filter(x => x.selected);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- const sel = this.connections
- .concat(this.activities.concat(this.operators))
- .filter(x => x.selected);
- `;
|