Skip to content

Commit

Permalink
Fix references in jasmine tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitryAstafyev committed Sep 5, 2023
1 parent 0091a34 commit 56f4aa4
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { initLogger } from './logger';
initLogger();
import { Session, Factory } from '../src/api/session';
import { IGrabbedElement } from '../src/interfaces/index';
import { IGrabbedElement } from 'platform/types/content';
import { createSampleFile, finish, runner } from './common';
import { readConfigurationFile } from './config';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { initLogger } from './logger';
initLogger();
import { Session, SessionStream, Factory } from '../src/api/session';
import { IGrabbedElement } from '../src/interfaces/index';
import { IGrabbedElement } from 'platform/types/content';
import { finish, createSampleFile, runner } from './common';
import { readConfigurationFile } from './config';
import { error } from 'platform/log/utils';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { initLogger } from './logger';
initLogger();
import { Session, Factory } from '../src/api/session';
import { IGrabbedElement } from '../src/interfaces/index';
import { IGrabbedElement } from 'platform/types/content';
import { createSampleFile, finish, runner } from './common';
import { readConfigurationFile } from './config';
import { fromIndexes } from 'platform/types/range';
Expand Down
30 changes: 22 additions & 8 deletions application/apps/rustcore/ts-bindings/spec/session.map.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { initLogger } from './logger';
initLogger();
import { Session, Factory } from '../src/api/session';
import { ISearchMap } from '../src/interfaces/index';
import { ISearchMap } from 'platform/types/filter';
import { finish, createSampleFile, runner } from './common';
import { readConfigurationFile } from './config';

Expand Down Expand Up @@ -51,7 +51,9 @@ describe('Map', function () {
new Factory.File()
.asText()
.type(Factory.FileType.Text)
.file(tmpobj.name).get().sterilized(),
.file(tmpobj.name)
.get()
.sterilized(),
)
.on('confirmed', () => {
search
Expand Down Expand Up @@ -137,7 +139,9 @@ describe('Map', function () {
new Factory.File()
.asText()
.type(Factory.FileType.Text)
.file(tmpobj.name).get().sterilized(),
.file(tmpobj.name)
.get()
.sterilized(),
)
.on('confirmed', () => {
search
Expand Down Expand Up @@ -227,7 +231,9 @@ describe('Map', function () {
new Factory.File()
.asText()
.type(Factory.FileType.Text)
.file(tmpobj.name).get().sterilized(),
.file(tmpobj.name)
.get()
.sterilized(),
)
.on('confirmed', () => {
search
Expand Down Expand Up @@ -367,7 +373,9 @@ describe('Map', function () {
new Factory.File()
.asText()
.type(Factory.FileType.Text)
.file(tmpobj.name).get().sterilized(),
.file(tmpobj.name)
.get()
.sterilized(),
)
.on('confirmed', () => {
search
Expand Down Expand Up @@ -457,7 +465,9 @@ describe('Map', function () {
new Factory.File()
.asText()
.type(Factory.FileType.Text)
.file(tmpobj.name).get().sterilized(),
.file(tmpobj.name)
.get()
.sterilized(),
)
.on('confirmed', () => {
search
Expand Down Expand Up @@ -547,7 +557,9 @@ describe('Map', function () {
new Factory.File()
.asText()
.type(Factory.FileType.Text)
.file(tmpobj.name).get().sterilized(),
.file(tmpobj.name)
.get()
.sterilized(),
)
.on('confirmed', () => {
search
Expand Down Expand Up @@ -637,7 +649,9 @@ describe('Map', function () {
new Factory.File()
.asText()
.type(Factory.FileType.Text)
.file(tmpobj.name).get().sterilized(),
.file(tmpobj.name)
.get()
.sterilized(),
)
.on('confirmed', () => {
search
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { initLogger } from './logger';
initLogger();
import { Session, Factory } from '../src/api/session';
import { IGrabbedElement } from '../src/interfaces/index';
import { IGrabbedElement } from 'platform/types/content';
import { IAttachmentsUpdatedUpdated } from '../src/api/session.provider';
import { IAttachment } from 'platform/types/content';
import { createSampleFile, finish, performanceReport, setMeasurement, runner } from './common';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { initLogger } from './logger';
initLogger();
import { Session, Factory } from '../src/api/session';
import { IGrabbedElement } from '../src/interfaces/index';
import { IGrabbedElement } from 'platform/types/content';
import { createSampleFile, finish, runner } from './common';
import { readConfigurationFile } from './config';

Expand Down Expand Up @@ -44,7 +44,8 @@ describe('Grab ranges', function () {
.asText()
.type(Factory.FileType.Text)
.file(tmpobj.name)
.get().sterilized(),
.get()
.sterilized(),
)
.catch(finish.bind(null, session, done));
let grabbing: boolean = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { initLogger } from './logger';
initLogger();
import { Session, Factory } from '../src/api/session';
import { IGrabbedElement } from '../src/interfaces/index';
import { IGrabbedElement } from 'platform/types/content';
import { finish, createSampleFile, runner } from './common';
import { readConfigurationFile } from './config';

Expand Down
26 changes: 17 additions & 9 deletions application/apps/rustcore/ts-bindings/spec/session.stream.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { initLogger } from './logger';
initLogger();
import { Session, Factory } from '../src/api/session';
import { IGrabbedElement } from '../src/interfaces/index';
import { IGrabbedElement } from 'platform/types/content';
import { createSampleFile, finish, runner } from './common';
import { readConfigurationFile } from './config';
import { utils } from 'platform/log';
Expand Down Expand Up @@ -60,7 +60,8 @@ if (process.platform === 'win32') {
cwd: process.cwd(),
envs: process.env as { [key: string]: string },
})
.get().sterilized(),
.get()
.sterilized(),
)
.catch(finish.bind(null, session, done));
events.StreamUpdated.subscribe((rows: number) => {
Expand Down Expand Up @@ -127,7 +128,8 @@ if (process.platform === 'win32') {
cwd: process.cwd(),
envs: process.env as { [key: string]: string },
})
.get().sterilized(),
.get()
.sterilized(),
)
.on('confirmed', () => {
lifeCycleEvents.push('confirmed');
Expand Down Expand Up @@ -171,7 +173,8 @@ if (process.platform === 'win32') {
cwd: process.cwd(),
envs: process.env as { [key: string]: string },
})
.get().sterilized(),
.get()
.sterilized(),
)
.on('confirmed', () => {
lifeCycleEvents.push('confirmed');
Expand Down Expand Up @@ -220,7 +223,8 @@ if (process.platform === 'win32') {
cwd: process.cwd(),
envs: process.env as { [key: string]: string },
})
.get().sterilized(),
.get()
.sterilized(),
)
.catch(finish.bind(null, session, done));
const append = () => {
Expand Down Expand Up @@ -333,7 +337,8 @@ if (process.platform === 'win32') {
cwd: process.cwd(),
envs: process.env as { [key: string]: string },
})
.get().sterilized(),
.get()
.sterilized(),
)
.catch(finish.bind(null, session, done));
const filter = 'match A';
Expand Down Expand Up @@ -451,7 +456,8 @@ if (process.platform === 'win32') {
cwd: process.cwd(),
envs: process.env as { [key: string]: string },
})
.get().sterilized(),
.get()
.sterilized(),
)
.catch(finish.bind(null, session, done));
events.StreamUpdated.subscribe((rows: number) => {
Expand Down Expand Up @@ -510,7 +516,8 @@ if (process.platform === 'win32') {
cwd: process.cwd(),
envs: process.env as { [key: string]: string },
})
.get().sterilized(),
.get()
.sterilized(),
)
.on('processing', (e) => {
procceed();
Expand All @@ -526,7 +533,8 @@ if (process.platform === 'win32') {
cwd: process.cwd(),
envs: process.env as { [key: string]: string },
})
.get().sterilized(),
.get()
.sterilized(),
)
.on('processing', () => {
procceed();
Expand Down

0 comments on commit 56f4aa4

Please sign in to comment.