jakeeyturner / composer-ionic Goto Github PK
View Code? Open in Web Editor NEWMobile application code generation tool for Hyperledger Composer
Mobile application code generation tool for Hyperledger Composer
The code generator should be able to be run from a web application. This allows users to generate mobile application easier, without needing to install the tool (or any dependencies).
I've already looked into this and have some code working, so this shouldn't be too difficult to create in the future.
Nice job, the app runs fine using npm start or ionic serve
Trying to emulate on ios or running on ios gets a Channel Closed error. Can ignore the Lint messages below. The same Channel Closed error occurs for Android too.
ionic cordova run ios
Running app-scripts build: --address 0.0.0.0 --port 8100 --p 8100 --livereload-port 35729 --r 35729 --iscordovaserve --nobrowser
[16:19:16] build dev started ...
[16:19:16] clean started ...
[16:19:16] clean finished in 5 ms
[16:19:16] copy started ...
[16:19:16] deeplinks started ...
[16:19:17] deeplinks finished in 218 ms
[16:19:17] transpile started ...
[16:19:21] transpile finished in 3.93 s
[16:19:21] preprocess started ...
[16:19:21] preprocess finished in less than 1 ms
[16:19:21] webpack started ...
[16:19:21] copy finished in 4.29 s
[16:19:27] webpack finished in 6.70 s
[16:19:27] sass started ...
Without from
option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to undefined
to prevent this warning.
[16:19:28] sass finished in 1.06 s
[16:19:28] postprocess started ...
[16:19:28] postprocess finished in 5 ms
[16:19:28] lint started ...
[16:19:28] build dev finished in 12.04 s
[WARN] Error occurred during command execution from a CLI plugin (@ionic/cli-plugin-cordova). Your plugins may be out of
date.
TypeError: env.runcmd is not a function
MacBook-Pro-28:DigitalPartsProvenanceMobile drmiller$ [16:19:31] tslint: src/app/app.module.ts, line: 26
'ORG_HYPERLEDGER_COMPOSER_SYSTEM' is declared but never used.
L26: import * as ORG_HYPERLEDGER_COMPOSER_SYSTEM from './org.hyperledger.composer.system';
L27: import * as NET_BIZ_DIGITALPARTSNETWORK from './net.biz.digitalpartsnetwork';
[16:19:31] tslint: src/app/app.module.ts, line: 27
'NET_BIZ_DIGITALPARTSNETWORK' is declared but never used.
L26: import * as ORG_HYPERLEDGER_COMPOSER_SYSTEM from './org.hyperledger.composer.system';
L27: import * as NET_BIZ_DIGITALPARTSNETWORK from './net.biz.digitalpartsnetwork';
(node:18856) UnhandledPromiseRejectionWarning: Error [ERR_IPC_CHANNEL_CLOSED]: channel closed
at process.target.send (internal/child_process.js:588:16)
at taskError (/Users/drmiller/Desktop/digitalpartsnetwork/apps/DigitalPartsProvenanceMobile/node_modules/@ionic/app-scripts/dist/worker-process.js:57:13)
at /Users/drmiller/Desktop/digitalpartsnetwork/apps/DigitalPartsProvenanceMobile/node_modules/@ionic/app-scripts/dist/worker-process.js:17:13
at
(node:18856) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:18856) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
It would be quite good for users to invite other people to join the business network, using a generated mobile application. The user could produce a QR code which another person could scan, to gain permissions to interact with the business network.
To make this a bit more user friendly, would it be possible to not display the entire relationship string. aka "resource:namespace.assetname#value.
Instead just display value
Mobile applications haven't been tested to see how they handle retrieving a large amounts of resources (such as assets).
I expect there'll need to be a limit on how many instances it attempts to retrieve using the REST API, or else the application could hang for a long time.
Will also need to investigate how this will affect the UI & UX.
This might be blocked by: https://github.com/hyperledger/composer/issues/1015
At the moment, generated mobile applications contain all asset, participant and transactions available to the business network.
It would be good to offer the ability to generate mobile applications from different participant perspectives, based upon the access control lists (ACLs).
Currently user defined transactions can be viewed. However, generic system events such as 'AddAsset' are not currently displayed in the generated mobile applications.
Currently tests are minimal for the code generator and they only check to see if files are created.
Will need to:
generators/app/index.js
It would be quite useful for mobile applications to receive events emitted from the business network.
This requires some thought regarding the design of how this could be implemented.
Currently, generated mobile applications have quite a few unit tests. The code coverage is relatively high, but there is still room for improvement!
The 'car auction' business network examples coverage is currently:
Where possible, more (and better) tests should be written to ensure that all components work correctly.
It would be good to offer more generation options regarding user preferences.
E.g. would be good to allow a user to specify editor configurations, spaces over tabs, etc.
It would also be beneficial to provide more options regarding CI pipeline configuration files
Currently authentication is not supported for generated mobile applications. It would be good to have the ability to use a REST API which requires credentials, to interact with a deployed business network.
Hyperledger Composer allows you to define pre-defined queries. It would be a value add to be able to access these in the mobile application and be able to supply params to queries that require it.
I'm encountering tons of Typescript errors out of nothing, on the same line of the same page (as shown below) , When I open the code in VS code it shows to be syntactically correct, and if I try to correct these errors, it results in syntax errors. What do I do in order to generate my Fabric app? Here is the array of errors when I try to load my ionic page:
Error
Typescript Error
';' expected.
node_modules/@types/jasmine/index.d.ts
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): any;
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): SpyObj;
Typescript Error
'(' expected.
node_modules/@types/jasmine/index.d.ts
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): any;
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): SpyObj;
Typescript Error
']' expected.
node_modules/@types/jasmine/index.d.ts
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): any;
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): SpyObj;
Typescript Error
',' expected.
node_modules/@types/jasmine/index.d.ts
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): any;
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): SpyObj;
Typescript Error
Property assignment expected.
node_modules/@types/jasmine/index.d.ts
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): any;
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): SpyObj;
Typescript Error
')' expected.
node_modules/@types/jasmine/index.d.ts
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): any;
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): SpyObj;
Typescript Error
'(' expected.
node_modules/@types/jasmine/index.d.ts
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): any;
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): SpyObj;
Typescript Error
']' expected.
node_modules/@types/jasmine/index.d.ts
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): any;
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): SpyObj;
Typescript Error
',' expected.
node_modules/@types/jasmine/index.d.ts
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): any;
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): SpyObj;
Typescript Error
Property assignment expected.
node_modules/@types/jasmine/index.d.ts
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): any;
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): SpyObj;
Typescript Error
Property assignment expected.
node_modules/@types/jasmine/index.d.ts
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): any;
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): SpyObj;
Typescript Error
',' expected.
node_modules/@types/jasmine/index.d.ts
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): any;
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): SpyObj;
Typescript Error
':' expected.
node_modules/@types/jasmine/index.d.ts
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): any;
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): SpyObj;
Typescript Error
'{' expected.
node_modules/@types/jasmine/index.d.ts
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): any;
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): SpyObj;
Typescript Error
':' expected.
node_modules/@types/jasmine/index.d.ts
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): any;
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): SpyObj;
Typescript Error
',' expected.
node_modules/@types/jasmine/index.d.ts
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): any;
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): SpyObj;
Typescript Error
':' expected.
node_modules/@types/jasmine/index.d.ts
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): any;
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): SpyObj;
Typescript Error
Expression expected.
node_modules/@types/jasmine/index.d.ts
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): any;
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): SpyObj;
Typescript Error
')' expected.
node_modules/@types/jasmine/index.d.ts
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): any;
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): SpyObj;
Typescript Error
';' expected.
node_modules/@types/jasmine/index.d.ts
/** By chaining the spy with and.throwError, all calls to the spy will throw the specified value. /
throwError(msg: string): Spy;
/* When a calling strategy is used for a spy, the original stubbing behavior can be returned at any time with and.stub. /
Typescript Error
Declaration or statement expected.
node_modules/@types/jasmine/index.d.ts
loadConfigFile(configFilePath: any): void;
loadHelpers(): void;
loadSpecs(): void;
Typescript Error
'ReadonlyArray' only refers to a type, but is being used as a value here.
node_modules/@types/jasmine/index.d.ts
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): any;
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): SpyObj;
Typescript Error
The right-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
node_modules/@types/jasmine/index.d.ts
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): any;
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): SpyObj;
Typescript Error
Cannot find name 'methodName'.
node_modules/@types/jasmine/index.d.ts
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): any;
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): SpyObj;
Typescript Error
Cannot find name 'string'.
node_modules/@types/jasmine/index.d.ts
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): any;
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): SpyObj;
Typescript Error
'ReadonlyArray' only refers to a type, but is being used as a value here.
node_modules/@types/jasmine/index.d.ts
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): any;
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): SpyObj;
Typescript Error
The right-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
node_modules/@types/jasmine/index.d.ts
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): any;
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): SpyObj;
Typescript Error
A computed property name must be of type 'string', 'number', 'symbol', or 'any'.
node_modules/@types/jasmine/index.d.ts
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): any;
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): SpyObj;
Typescript Error
Cannot find name 'P'.
node_modules/@types/jasmine/index.d.ts
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): any;
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): SpyObj;
Typescript Error
Cannot find name 'keyof'.
node_modules/@types/jasmine/index.d.ts
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): any;
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): SpyObj;
Typescript Error
Cannot find name 'T'.
node_modules/@types/jasmine/index.d.ts
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): any;
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): SpyObj;
Typescript Error
Cannot find name 'P'.
node_modules/@types/jasmine/index.d.ts
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): any;
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): SpyObj;
Typescript Error
Cannot find name 'T'.
node_modules/@types/jasmine/index.d.ts
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): any;
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): SpyObj;
Typescript Error
Cannot find name 'P'.
node_modules/@types/jasmine/index.d.ts
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): any;
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): SpyObj;
Typescript Error
An object literal cannot have multiple properties with the same name in strict mode.
node_modules/@types/jasmine/index.d.ts
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): any;
function createSpyObj(baseName: string, methodNames: SpyObjMethodNames): SpyObj;
Typescript Error
Invalid use of 'arguments'. Modules are automatically in strict mode.
node_modules/@types/jasmine/index.d.ts
execute(onComplete?: () => void, enabled?: boolean): any;
addBeforesAndAftersToQueue(): void;
explodes(): void;
Typescript Error
Cannot find name 'T'.
node_modules/@types/jasmine/index.d.ts
/* By chaining the spy with and.throwError, all calls to the spy will throw the specified value. /
throwError(msg: string): Spy;
/* When a calling strategy is used for a spy, the original stubbing behavior can be returned at any time with and.stub. /
Typescript Error
Cannot find name 'k'.
node_modules/@types/jasmine/index.d.ts
/* By chaining the spy with and.throwError, all calls to the spy will throw the specified value. /
throwError(msg: string): Spy;
/* When a calling strategy is used for a spy, the original stubbing behavior can be returned at any time with and.stub. /
Typescript Error
'Spy' only refers to a type, but is being used as a value here.
node_modules/@types/jasmine/index.d.ts
/* By chaining the spy with and.throwError, all calls to the spy will throw the specified value. /
throwError(msg: string): Spy;
/* When a calling strategy is used for a spy, the original stubbing behavior can be returned at any time with and.stub. /
Typescript Error
Cannot find name 'T'.
node_modules/@types/jasmine/index.d.ts
/* By chaining the spy with and.throwError, all calls to the spy will throw the specified value. /
throwError(msg: string): Spy;
/* When a calling strategy is used for a spy, the original stubbing behavior can be returned at any time with and.stub. /
Typescript Error
Cannot find name 'k'.
node_modules/@types/jasmine/index.d.ts
/* By chaining the spy with and.throwError, all calls to the spy will throw the specified value. /
throwError(msg: string): Spy;
/* When a calling strategy is used for a spy, the original stubbing behavior can be returned at any time with and.stub. /
Typescript Error
Cannot find name 'Spy'.
node_modules/@types/jasmine/index.d.ts
/* By chaining the spy with calls.any(), will return false if the spy has not been called at all, and then true once at least one call happens. /
any(): boolean;
/ By chaining the spy with calls.count(), will return the number of times the spy was called /
Typescript Error
Cannot find name 'Spy'.
node_modules/@types/jasmine/index.d.ts
/ By chaining the spy with calls.count(), will return the number of times the spy was called /
count(): number;
/ By chaining the spy with calls.argsFor(), will return the arguments passed to call number index /
Typescript Error
Cannot find name 'Spy'.
node_modules/@types/jasmine/index.d.ts
/ By chaining the spy with calls.argsFor(), will return the arguments passed to call number index /
argsFor(index: number): any[];
/ By chaining the spy with calls.allArgs(), will return the arguments to all calls /
Typescript Error
Cannot find name 'Spy'.
node_modules/@types/jasmine/index.d.ts
/ By chaining the spy with calls.allArgs(), will return the arguments to all calls /
allArgs(): any[];
/ By chaining the spy with calls.all(), will return the context (the this) and arguments passed all calls /
Typescript Error
Cannot find name 'Spy'.
node_modules/@types/jasmine/index.d.ts
/ By chaining the spy with calls.all(), will return the context (the this) and arguments passed all calls /
all(): CallInfo[];
/ By chaining the spy with calls.mostRecent(), will return the context (the this) and arguments for the most recent call /
Typescript Error
Cannot find name 'Spy'.
node_modules/@types/jasmine/index.d.ts
/ By chaining the spy with calls.mostRecent(), will return the context (the this) and arguments for the most recent call /
mostRecent(): CallInfo;
/ By chaining the spy with calls.first(), will return the context (the this) and arguments for the first call **/
Typescript Error
Cannot find name 'Reporter'.
node_modules/@types/jasmine/index.d.ts
log(str: any): any;
resultsForSpecs(specIds: any): any;
summarizeResult_(result: any): any;
Typescript Error
Cannot find name 'RunDetails'.
node_modules/@types/jasmine/index.d.ts
Spec: Spec;
clock: Clock;
util: Util;
Typescript Error
Cannot find name 'Suite'.
node_modules/@types/jasmine/index.d.ts
export var HtmlReporter: HtmlReporter;
export var HtmlSpecFilter: HtmlSpecFilter;
Typescript Error
Cannot find name 'SuiteOrSpec'.
node_modules/@types/jasmine/index.d.ts
export var HtmlReporter: HtmlReporter;
export var HtmlSpecFilter: HtmlSpecFilter;
export var DEFAULT_TIMEOUT_INTERVAL: number;
Typescript Error
Cannot find name 'Spec'.
node_modules/@types/jasmine/index.d.ts
jasmine: jasmine.Jasmine;
addMatchers(matchers: jasmine.CustomMatcherFactories): void;
addReporter(reporter: jasmine.Reporter): void;
Typescript Error
Cannot find name 'Clock'.
node_modules/@types/jasmine/index.d.ts
addMatchers(matchers: jasmine.CustomMatcherFactories): void;
addReporter(reporter: jasmine.Reporter): void;
addSpecFile(filePath: string): void;
Typescript Error
Cannot find name 'HtmlReporter'.
node_modules/@types/jasmine/index.d.ts
configureDefaultReporter(options: any, ...args: any[]): void;
execute(files?: string[], filterString?: string): any;
exitCodeCompletion(passed: any): void;
Typescript Error
Cannot find name 'HtmlSpecFilter'.
node_modules/@types/jasmine/index.d.ts
execute(files?: string[], filterString?: string): any;
exitCodeCompletion(passed: any): void;
loadConfig(config: any): void;
Typescript Error
Namespace '"/home/nauman/Desktop/Mobile-Blockchain-App/node_modules/@types/jasmine/index".jasmine' has no exported member 'Jasmine'.
node_modules/@types/jasmine/index.d.ts
randomizeTests(value?: any): boolean;
seed(value: any): void;
showColors(value: any): void;
Typescript Error
Cannot find name 'describe'.
src/app/app.component.spec.ts
describe('AppComponent', () => {
let fixture;
Typescript Error
Cannot find name 'beforeEach'.
src/app/app.component.spec.ts
beforeEach(async(() => {
TestBed.configureTestingModule({
Typescript Error
Cannot find name 'beforeEach'.
src/app/app.component.spec.ts
beforeEach(() => {
mockObservable = new MockObservable();
Typescript Error
Cannot find name 'it'.
src/app/app.component.spec.ts
it('should be created', fakeAsync(() => {
spyOn(PlatformMock.prototype,'ready').and.returnValue(Promise.resolve());
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
it('should be created', fakeAsync(() => {
spyOn(PlatformMock.prototype,'ready').and.returnValue(Promise.resolve());
spyOn(StorageMock.prototype,'length').and.returnValue(Promise.resolve(1));
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(PlatformMock.prototype,'ready').and.returnValue(Promise.resolve());
spyOn(StorageMock.prototype,'length').and.returnValue(Promise.resolve(1));
spyOn(StatusBarMock.prototype,'styleDefault');
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(StorageMock.prototype,'length').and.returnValue(Promise.resolve(1));
spyOn(StatusBarMock.prototype,'styleDefault');
spyOn(SplashScreenMock.prototype,'hide');
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(StatusBarMock.prototype,'styleDefault');
spyOn(SplashScreenMock.prototype,'hide');
spyOn(PlatformServiceMock.prototype,'isDevice').and.returnValue(true);
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(SplashScreenMock.prototype,'hide');
spyOn(PlatformServiceMock.prototype,'isDevice').and.returnValue(true);
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(NetworkMock.prototype,'onDisconnect').and.returnValue(mockObservable);
spyOn(NetworkMock.prototype,'onConnect').and.returnValue(mockObservable);
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(NetworkMock.prototype,'onDisconnect').and.returnValue(mockObservable);
spyOn(NetworkMock.prototype,'onConnect').and.returnValue(mockObservable);
tick();
Typescript Error
Cannot find name 'expect'.
src/app/app.component.spec.ts
tick();
expect(component instanceof MyApp).toBe(true);
}));
Typescript Error
Cannot find name 'it'.
src/app/app.component.spec.ts
it('should initialize with correct navigation pages', fakeAsync(() => {
spyOn(PlatformMock.prototype,'ready').and.returnValue(Promise.resolve());
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
it('should initialize with correct navigation pages', fakeAsync(() => {
spyOn(PlatformMock.prototype,'ready').and.returnValue(Promise.resolve());
spyOn(StorageMock.prototype,'length').and.returnValue(Promise.resolve(1));
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(PlatformMock.prototype,'ready').and.returnValue(Promise.resolve());
spyOn(StorageMock.prototype,'length').and.returnValue(Promise.resolve(1));
spyOn(StatusBarMock.prototype,'styleDefault');
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(StorageMock.prototype,'length').and.returnValue(Promise.resolve(1));
spyOn(StatusBarMock.prototype,'styleDefault');
spyOn(SplashScreenMock.prototype,'hide');
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(StatusBarMock.prototype,'styleDefault');
spyOn(SplashScreenMock.prototype,'hide');
spyOn(PlatformServiceMock.prototype,'isDevice').and.returnValue(true);
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(SplashScreenMock.prototype,'hide');
spyOn(PlatformServiceMock.prototype,'isDevice').and.returnValue(true);
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(NetworkMock.prototype,'onDisconnect').and.returnValue(mockObservable);
spyOn(NetworkMock.prototype,'onConnect').and.returnValue(mockObservable);
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(NetworkMock.prototype,'onDisconnect').and.returnValue(mockObservable);
spyOn(NetworkMock.prototype,'onConnect').and.returnValue(mockObservable);
tick();
Typescript Error
Cannot find name 'expect'.
src/app/app.component.spec.ts
tick();
expect(component.pages).toEqual([
{ title: 'Home', component: HomePage },
Typescript Error
Cannot find name 'it'.
src/app/app.component.spec.ts
it('should set REST API url is unset', fakeAsync(() => {
spyOn(PlatformMock.prototype,'ready').and.returnValue(Promise.resolve());
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
it('should set REST API url is unset', fakeAsync(() => {
spyOn(PlatformMock.prototype,'ready').and.returnValue(Promise.resolve());
spyOn(StorageMock.prototype,'length').and.returnValue(Promise.resolve(0));
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(PlatformMock.prototype,'ready').and.returnValue(Promise.resolve());
spyOn(StorageMock.prototype,'length').and.returnValue(Promise.resolve(0));
spyOn(StorageMock.prototype,'set');
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(StorageMock.prototype,'length').and.returnValue(Promise.resolve(0));
spyOn(StorageMock.prototype,'set');
spyOn(StatusBarMock.prototype,'styleDefault');
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(StorageMock.prototype,'set');
spyOn(StatusBarMock.prototype,'styleDefault');
spyOn(SplashScreenMock.prototype,'hide');
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(StatusBarMock.prototype,'styleDefault');
spyOn(SplashScreenMock.prototype,'hide');
spyOn(PlatformServiceMock.prototype,'isDevice').and.returnValue(true);
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(SplashScreenMock.prototype,'hide');
spyOn(PlatformServiceMock.prototype,'isDevice').and.returnValue(true);
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(NetworkMock.prototype,'onDisconnect').and.returnValue(mockObservable);
spyOn(NetworkMock.prototype,'onConnect').and.returnValue(mockObservable);
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(NetworkMock.prototype,'onDisconnect').and.returnValue(mockObservable);
spyOn(NetworkMock.prototype,'onConnect').and.returnValue(mockObservable);
component.initializeApp();
Typescript Error
Cannot find name 'expect'.
src/app/app.component.spec.ts
tick();
expect(StorageMock.prototype.set).toHaveBeenCalledWith("apiURL","http://localhost:3000/api/");
}));
Typescript Error
Cannot find name 'it'.
src/app/app.component.spec.ts
it('should ignore setting REST API url if it has been set already', fakeAsync(() =>{
spyOn(PlatformMock.prototype,'ready').and.returnValue(Promise.resolve());
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
it('should ignore setting REST API url if it has been set already', fakeAsync(() =>{
spyOn(PlatformMock.prototype,'ready').and.returnValue(Promise.resolve());
spyOn(StorageMock.prototype,'length').and.returnValue(Promise.resolve(1));
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(PlatformMock.prototype,'ready').and.returnValue(Promise.resolve());
spyOn(StorageMock.prototype,'length').and.returnValue(Promise.resolve(1));
spyOn(StorageMock.prototype,'set');
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(StorageMock.prototype,'length').and.returnValue(Promise.resolve(1));
spyOn(StorageMock.prototype,'set');
spyOn(StatusBarMock.prototype,'styleDefault');
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(StorageMock.prototype,'set');
spyOn(StatusBarMock.prototype,'styleDefault');
spyOn(SplashScreenMock.prototype,'hide');
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(StatusBarMock.prototype,'styleDefault');
spyOn(SplashScreenMock.prototype,'hide');
spyOn(PlatformServiceMock.prototype,'isDevice').and.returnValue(true);
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(SplashScreenMock.prototype,'hide');
spyOn(PlatformServiceMock.prototype,'isDevice').and.returnValue(true);
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(NetworkMock.prototype,'onDisconnect').and.returnValue(mockObservable);
spyOn(NetworkMock.prototype,'onConnect').and.returnValue(mockObservable);
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(NetworkMock.prototype,'onDisconnect').and.returnValue(mockObservable);
spyOn(NetworkMock.prototype,'onConnect').and.returnValue(mockObservable);
component.initializeApp();
Typescript Error
Cannot find name 'expect'.
src/app/app.component.spec.ts
tick();
expect(StorageMock.prototype.set).not.toHaveBeenCalled();
}))
Typescript Error
Cannot find name 'it'.
src/app/app.component.spec.ts
it('should detect if running in a browser', fakeAsync(() => {
spyOn(PlatformMock.prototype,'ready').and.returnValue(Promise.resolve());
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
it('should detect if running in a browser', fakeAsync(() => {
spyOn(PlatformMock.prototype,'ready').and.returnValue(Promise.resolve());
spyOn(StorageMock.prototype,'length').and.returnValue(Promise.resolve(1));
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(PlatformMock.prototype,'ready').and.returnValue(Promise.resolve());
spyOn(StorageMock.prototype,'length').and.returnValue(Promise.resolve(1));
spyOn(StatusBarMock.prototype,'styleDefault');
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(StorageMock.prototype,'length').and.returnValue(Promise.resolve(1));
spyOn(StatusBarMock.prototype,'styleDefault');
spyOn(SplashScreenMock.prototype,'hide');
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(StatusBarMock.prototype,'styleDefault');
spyOn(SplashScreenMock.prototype,'hide');
spyOn(PlatformServiceMock.prototype,'isDevice').and.returnValue(false);
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(SplashScreenMock.prototype,'hide');
spyOn(PlatformServiceMock.prototype,'isDevice').and.returnValue(false);
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(NetworkMock.prototype,'onDisconnect').and.returnValue(mockObservable);
spyOn(NetworkMock.prototype,'onConnect').and.returnValue(mockObservable);
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(NetworkMock.prototype,'onDisconnect').and.returnValue(mockObservable);
spyOn(NetworkMock.prototype,'onConnect').and.returnValue(mockObservable);
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(MockNullObservable.prototype,'subscribe').and.returnValue(null);
Typescript Error
Cannot find name 'expect'.
src/app/app.component.spec.ts
expect(StatusBarMock.prototype.styleDefault).not.toHaveBeenCalled();
expect(SplashScreenMock.prototype.hide).not.toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/app.component.spec.ts
expect(StatusBarMock.prototype.styleDefault).not.toHaveBeenCalled();
expect(SplashScreenMock.prototype.hide).not.toHaveBeenCalled();
Typescript Error
Cannot find name 'it'.
src/app/app.component.spec.ts
it('should detect if running on a mobile device', fakeAsync(() => {
spyOn(PlatformMock.prototype,'ready').and.returnValue(Promise.resolve());
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
it('should detect if running on a mobile device', fakeAsync(() => {
spyOn(PlatformMock.prototype,'ready').and.returnValue(Promise.resolve());
spyOn(StorageMock.prototype,'length').and.returnValue(Promise.resolve(1));
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(PlatformMock.prototype,'ready').and.returnValue(Promise.resolve());
spyOn(StorageMock.prototype,'length').and.returnValue(Promise.resolve(1));
spyOn(StatusBarMock.prototype,'styleDefault');
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(StorageMock.prototype,'length').and.returnValue(Promise.resolve(1));
spyOn(StatusBarMock.prototype,'styleDefault');
spyOn(SplashScreenMock.prototype,'hide');
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(StatusBarMock.prototype,'styleDefault');
spyOn(SplashScreenMock.prototype,'hide');
spyOn(PlatformServiceMock.prototype,'isDevice').and.returnValue(true);
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(SplashScreenMock.prototype,'hide');
spyOn(PlatformServiceMock.prototype,'isDevice').and.returnValue(true);
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(NetworkMock.prototype,'onDisconnect').and.returnValue(mockObservable);
spyOn(NetworkMock.prototype,'onConnect').and.returnValue(mockObservable);
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(NetworkMock.prototype,'onDisconnect').and.returnValue(mockObservable);
spyOn(NetworkMock.prototype,'onConnect').and.returnValue(mockObservable);
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(MockNullObservable.prototype,'subscribe').and.returnValue(null);
Typescript Error
Cannot find name 'expect'.
src/app/app.component.spec.ts
expect(StatusBarMock.prototype.styleDefault).toHaveBeenCalled();
expect(SplashScreenMock.prototype.hide).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/app.component.spec.ts
expect(StatusBarMock.prototype.styleDefault).toHaveBeenCalled();
expect(SplashScreenMock.prototype.hide).toHaveBeenCalled();
Typescript Error
Cannot find name 'it'.
src/app/app.component.spec.ts
it('should detect if disconnected from a network', fakeAsync(() => {
spyOn(PlatformMock.prototype,'ready').and.returnValue(Promise.resolve());
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
it('should detect if disconnected from a network', fakeAsync(() => {
spyOn(PlatformMock.prototype,'ready').and.returnValue(Promise.resolve());
spyOn(StorageMock.prototype,'length').and.returnValue(Promise.resolve(1));
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(PlatformMock.prototype,'ready').and.returnValue(Promise.resolve());
spyOn(StorageMock.prototype,'length').and.returnValue(Promise.resolve(1));
spyOn(StatusBarMock.prototype,'styleDefault');
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(StorageMock.prototype,'length').and.returnValue(Promise.resolve(1));
spyOn(StatusBarMock.prototype,'styleDefault');
spyOn(SplashScreenMock.prototype,'hide');
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(StatusBarMock.prototype,'styleDefault');
spyOn(SplashScreenMock.prototype,'hide');
spyOn(PlatformServiceMock.prototype,'isDevice').and.returnValue(true);
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(SplashScreenMock.prototype,'hide');
spyOn(PlatformServiceMock.prototype,'isDevice').and.returnValue(true);
spyOn(PlatformServiceMock.prototype,'setConnection');
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(PlatformServiceMock.prototype,'isDevice').and.returnValue(true);
spyOn(PlatformServiceMock.prototype,'setConnection');
spyOn(ToastMock.prototype,'show').and.returnValue(Observable.of('show toast'))
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(PlatformServiceMock.prototype,'setConnection');
spyOn(ToastMock.prototype,'show').and.returnValue(Observable.of('show toast'))
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(NetworkMock.prototype,'onDisconnect').and.returnValue(Observable.of('disconnection event'));
spyOn(NetworkMock.prototype,'onConnect').and.returnValue(mockNullObservable);
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(NetworkMock.prototype,'onDisconnect').and.returnValue(Observable.of('disconnection event'));
spyOn(NetworkMock.prototype,'onConnect').and.returnValue(mockNullObservable);
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(MockNullObservable.prototype,'subscribe').and.returnValue(null);
Typescript Error
Cannot find name 'expect'.
src/app/app.component.spec.ts
expect(StatusBarMock.prototype.styleDefault).toHaveBeenCalled();
expect(SplashScreenMock.prototype.hide).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/app.component.spec.ts
expect(StatusBarMock.prototype.styleDefault).toHaveBeenCalled();
expect(SplashScreenMock.prototype.hide).toHaveBeenCalled();
expect(ToastMock.prototype.show).toHaveBeenCalledWith('Disconnected from Network', '3000', 'bottom');
Typescript Error
Cannot find name 'expect'.
src/app/app.component.spec.ts
expect(SplashScreenMock.prototype.hide).toHaveBeenCalled();
expect(ToastMock.prototype.show).toHaveBeenCalledWith('Disconnected from Network', '3000', 'bottom');
Typescript Error
Cannot find name 'expect'.
src/app/app.component.spec.ts
expect(PlatformServiceMock.prototype.setConnection).toHaveBeenCalledWith('sometype');
}));
Typescript Error
Cannot find name 'it'.
src/app/app.component.spec.ts
it('should detect if reconnected to a network', fakeAsync(() => {
spyOn(PlatformMock.prototype,'ready').and.returnValue(Promise.resolve());
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
it('should detect if reconnected to a network', fakeAsync(() => {
spyOn(PlatformMock.prototype,'ready').and.returnValue(Promise.resolve());
spyOn(StorageMock.prototype,'length').and.returnValue(Promise.resolve(1));
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(PlatformMock.prototype,'ready').and.returnValue(Promise.resolve());
spyOn(StorageMock.prototype,'length').and.returnValue(Promise.resolve(1));
spyOn(StatusBarMock.prototype,'styleDefault');
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(StorageMock.prototype,'length').and.returnValue(Promise.resolve(1));
spyOn(StatusBarMock.prototype,'styleDefault');
spyOn(SplashScreenMock.prototype,'hide');
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(StatusBarMock.prototype,'styleDefault');
spyOn(SplashScreenMock.prototype,'hide');
spyOn(PlatformServiceMock.prototype,'isDevice').and.returnValue(true);
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(SplashScreenMock.prototype,'hide');
spyOn(PlatformServiceMock.prototype,'isDevice').and.returnValue(true);
spyOn(PlatformServiceMock.prototype,'setConnection');
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(PlatformServiceMock.prototype,'isDevice').and.returnValue(true);
spyOn(PlatformServiceMock.prototype,'setConnection');
spyOn(ToastMock.prototype,'show').and.returnValue(Observable.of('show toast'))
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(PlatformServiceMock.prototype,'setConnection');
spyOn(ToastMock.prototype,'show').and.returnValue(Observable.of('show toast'))
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(NetworkMock.prototype,'onDisconnect').and.returnValue(mockNullObservable);
spyOn(NetworkMock.prototype,'onConnect').and.returnValue(Observable.of('reconnection event'));
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(NetworkMock.prototype,'onDisconnect').and.returnValue(mockNullObservable);
spyOn(NetworkMock.prototype,'onConnect').and.returnValue(Observable.of('reconnection event'));
Typescript Error
Cannot find name 'spyOn'.
src/app/app.component.spec.ts
spyOn(MockNullObservable.prototype,'subscribe').and.returnValue(null);
Typescript Error
Cannot find name 'expect'.
src/app/app.component.spec.ts
expect(StatusBarMock.prototype.styleDefault).toHaveBeenCalled();
expect(SplashScreenMock.prototype.hide).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/app.component.spec.ts
expect(StatusBarMock.prototype.styleDefault).toHaveBeenCalled();
expect(SplashScreenMock.prototype.hide).toHaveBeenCalled();
expect(ToastMock.prototype.show).toHaveBeenCalledWith('Reconnected to Network', '3000', 'bottom');
Typescript Error
Cannot find name 'expect'.
src/app/app.component.spec.ts
expect(SplashScreenMock.prototype.hide).toHaveBeenCalled();
expect(ToastMock.prototype.show).toHaveBeenCalledWith('Reconnected to Network', '3000', 'bottom');
Typescript Error
Cannot find name 'expect'.
src/app/app.component.spec.ts
expect(PlatformServiceMock.prototype.setConnection).toHaveBeenCalledWith('sometype');
}));
Typescript Error
Cannot find name 'describe'.
src/app/pages/asset-view/asset-view.component.spec.ts
describe('AssetViewPage', () => {
let fixture;
Typescript Error
Cannot find name 'beforeEach'.
src/app/pages/asset-view/asset-view.component.spec.ts
let ViewControllerMock = mockView();
beforeEach(async(() => {
assetId = 'assetIdPassedFromAnotherComponent';
Typescript Error
Cannot find name 'beforeEach'.
src/app/pages/asset-view/asset-view.component.spec.ts
beforeEach(() => {
fixture = TestBed.createComponent(AssetViewPage);
Typescript Error
Cannot find name 'it'.
src/app/pages/asset-view/asset-view.component.spec.ts
it('should create AssetViewPage component', () => {
expect(component instanceof AssetViewPage).toBe(true);
Typescript Error
Cannot find name 'expect'.
src/app/pages/asset-view/asset-view.component.spec.ts
it('should create AssetViewPage component', () => {
expect(component instanceof AssetViewPage).toBe(true);
});
Typescript Error
Cannot find name 'it'.
src/app/pages/asset-view/asset-view.component.spec.ts
it('should have correct title',() => {
let title = fixture.debugElement.query(By.css('ion-title'));
Typescript Error
Cannot find name 'expect'.
src/app/pages/asset-view/asset-view.component.spec.ts
fixture.detectChanges();
expect(title.nativeElement.textContent).toContain(assetType+' // ' +assetId);
});
Typescript Error
Cannot find name 'it'.
src/app/pages/asset-view/asset-view.component.spec.ts
it('should get correct asset id',() => {
expect(component.assetId).toEqual('assetIdPassedFromAnotherComponent');
Typescript Error
Cannot find name 'expect'.
src/app/pages/asset-view/asset-view.component.spec.ts
it('should get correct asset id',() => {
expect(component.assetId).toEqual('assetIdPassedFromAnotherComponent');
});
Typescript Error
Cannot find name 'it'.
src/app/pages/asset-view/asset-view.component.spec.ts
it('should get correct asset type',() => {
expect(component.assetType).toEqual('assetTypePassedFromAnotherComponent')
Typescript Error
Cannot find name 'expect'.
src/app/pages/asset-view/asset-view.component.spec.ts
it('should get correct asset type',() => {
expect(component.assetType).toEqual('assetTypePassedFromAnotherComponent')
});
Typescript Error
Cannot find name 'it'.
src/app/pages/asset-view/asset-view.component.spec.ts
it('should fetch data and prepare the view', fakeAsync(() => {
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/asset-view/asset-view.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/asset-view/asset-view.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/asset-view/asset-view.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
spyOn(component, 'getAsset').and.returnValue(new Promise((resolve,reject)=>{
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/asset-view/asset-view.component.spec.ts
spyOn(LoadingMock.prototype,'present');
spyOn(component, 'getAsset').and.returnValue(new Promise((resolve,reject)=>{
resolve({'$class':'class','property1':'value1','property2':'value2'})
Typescript Error
Cannot find name 'expect'.
src/app/pages/asset-view/asset-view.component.spec.ts
expect(LoadingControllerMock.prototype.create).toHaveBeenCalledWith({
content: 'Fetching assetIdPassedFromAnotherComponent'
Typescript Error
Cannot find name 'expect'.
src/app/pages/asset-view/asset-view.component.spec.ts
expect(LoadingMock.prototype.present).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/asset-view/asset-view.component.spec.ts
expect(component.loadedAsset).toEqual({'$class':'class','property1':'value1','property2':'value2'});
expect(component.loadedAssetKeys).toEqual(['property1','property2']);
Typescript Error
Cannot find name 'expect'.
src/app/pages/asset-view/asset-view.component.spec.ts
expect(component.loadedAsset).toEqual({'$class':'class','property1':'value1','property2':'value2'});
expect(component.loadedAssetKeys).toEqual(['property1','property2']);
Typescript Error
Cannot find name 'expect'.
src/app/pages/asset-view/asset-view.component.spec.ts
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
Typescript Error
Cannot find name 'it'.
src/app/pages/asset-view/asset-view.component.spec.ts
it('should call dataservice with correct arguments', () => {
component.assetId = assetId;
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/asset-view/asset-view.component.spec.ts
component.assetType = assetType;
spyOn(DataServiceMock.prototype,'get');
component.getAsset();
Typescript Error
Cannot find name 'expect'.
src/app/pages/asset-view/asset-view.component.spec.ts
component.getAsset();
expect(DataServiceMock.prototype.get).toHaveBeenCalledWith(assetType,assetId);
});
Typescript Error
Cannot find name 'it'.
src/app/pages/asset-view/asset-view.component.spec.ts
it('should dismiss modal', () => {
spyOn(ViewControllerMock,'dismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/asset-view/asset-view.component.spec.ts
it('should dismiss modal', () => {
spyOn(ViewControllerMock,'dismiss');
component.dismiss();
Typescript Error
Cannot find name 'expect'.
src/app/pages/asset-view/asset-view.component.spec.ts
component.dismiss();
expect(ViewControllerMock.dismiss).toHaveBeenCalled();
});
Typescript Error
Cannot find name 'describe'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
describe('VehiclePage', () => {
let fixture;
Typescript Error
Cannot find name 'beforeEach'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
beforeEach(async(() => {
Typescript Error
Cannot find name 'beforeEach'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
beforeEach(() => {
spyOn(serviceVehiclePageMock.prototype,'getAll').and.callThrough();
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
beforeEach(() => {
spyOn(serviceVehiclePageMock.prototype,'getAll').and.callThrough();
fixture = TestBed.createComponent(VehiclePage);
Typescript Error
Cannot find name 'it'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
it('should create VehiclePage component', () => {
expect(component instanceof VehiclePage).toBe(true);
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
it('should create VehiclePage component', () => {
expect(component instanceof VehiclePage).toBe(true);
});
Typescript Error
Cannot find name 'it'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
it('should have correct title',() => {
let title = fixture.debugElement.query(By.css('ion-title'));
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
fixture.detectChanges();
expect(title.nativeElement.textContent).toContain('Vehicle');
});
Typescript Error
Cannot find name 'it'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
it('should return Vehicle assets', fakeAsync(() => {
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
it('should return Vehicle assets', fakeAsync(() => {
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
expect(component.currentItems.length).toEqual(3);
expect(component.items.length).toEqual(3);
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
expect(component.currentItems.length).toEqual(3);
expect(component.items.length).toEqual(3);
}));
Typescript Error
Cannot find name 'it'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
it('Vehicle assets should be a Vehicle type', fakeAsync(() => {
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
it('Vehicle assets should be a Vehicle type', fakeAsync(() => {
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
expect(component.currentItems[0] instanceof Vehicle).toBe(true);
expect(component.currentItems[1] instanceof Vehicle).toBe(true);
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
expect(component.currentItems[0] instanceof Vehicle).toBe(true);
expect(component.currentItems[1] instanceof Vehicle).toBe(true);
expect(component.currentItems[2] instanceof Vehicle).toBe(true);
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
expect(component.currentItems[1] instanceof Vehicle).toBe(true);
expect(component.currentItems[2] instanceof Vehicle).toBe(true);
}));
Typescript Error
Cannot find name 'it'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
it('should present and dismiss loading alert', fakeAsync(() => {
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
it('should present and dismiss loading alert', fakeAsync(() => {
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
expect(LoadingControllerMock.prototype.create).toHaveBeenCalled();
expect(LoadingMock.prototype.present).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
expect(LoadingControllerMock.prototype.create).toHaveBeenCalled();
expect(LoadingMock.prototype.present).toHaveBeenCalled();
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
expect(LoadingMock.prototype.present).toHaveBeenCalled();
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
expect(component.itemsLoaded).toEqual(true);
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
expect(component.itemsLoaded).toEqual(true);
}));
Typescript Error
Cannot find name 'it'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
it('should get same items when no search text', fakeAsync(() => {
let ev = {target:{value:""}};
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
expect(component.currentItems).toEqual([VehicleOne,VehicleTwo,VehicleThree]);
Typescript Error
Cannot find name 'it'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
it('should get some items when there is partially matching search text', fakeAsync(() => {
let ev = {target:{value:"3"}};
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
expect(component.items).toEqual([VehicleThree]);
Typescript Error
Cannot find name 'it'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
it('should get no items when there is no matching search text', fakeAsync(() => {
let ev = {target:{value:"randomstring"}};
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
expect(component.items).toEqual([]);
Typescript Error
Cannot find name 'it'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
it('should refresh and fetch latest items', fakeAsync(() => {
let refresher = {complete:function(){return;}};
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
spyOn(refresher,'complete');
component.refreshItems(refresher);
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
expect(component.currentItems).toEqual([VehicleOne,VehicleTwo,VehicleThree]);
expect(component.items).toEqual([VehicleOne,VehicleTwo,VehicleThree]);
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
expect(component.currentItems).toEqual([VehicleOne,VehicleTwo,VehicleThree]);
expect(component.items).toEqual([VehicleOne,VehicleTwo,VehicleThree]);
expect(refresher.complete).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
expect(component.items).toEqual([VehicleOne,VehicleTwo,VehicleThree]);
expect(refresher.complete).toHaveBeenCalled();
Typescript Error
Cannot find name 'it'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
it('should open model to view asset', fakeAsync(() => {
spyOn(ModalControllerMock.prototype,'create').and.returnValue(modalMock);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
it('should open model to view asset', fakeAsync(() => {
spyOn(ModalControllerMock.prototype,'create').and.returnValue(modalMock);
spyOn(ModalMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
spyOn(ModalControllerMock.prototype,'create').and.returnValue(modalMock);
spyOn(ModalMock.prototype,'present');
let assetIdentifier = 'assetIdentifier';
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
tick();
expect(ModalControllerMock.prototype.create).toHaveBeenCalledWith(
AssetViewPage, {
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
)
expect(ModalMock.prototype.present).toHaveBeenCalled();
}));
Typescript Error
Cannot find name 'it'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
it('should show delete asset alert', fakeAsync(() => {
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
it('should show delete asset alert', fakeAsync(() => {
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
spyOn(AlertMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
spyOn(AlertMock.prototype,'present');
let assetIdentifier = 'assetIdentifier'
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
tick();
expect(AlertMock.prototype.present).toHaveBeenCalled();
}));
Typescript Error
Cannot find name 'it'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
it('should open model to add asset', fakeAsync(() => {
spyOn(ModalControllerMock.prototype,'create').and.returnValue(modalMock);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
it('should open model to add asset', fakeAsync(() => {
spyOn(ModalControllerMock.prototype,'create').and.returnValue(modalMock);
spyOn(ModalMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
spyOn(ModalControllerMock.prototype,'create').and.returnValue(modalMock);
spyOn(ModalMock.prototype,'present');
spyOn(ModalMock.prototype,'onDidDismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
spyOn(ModalMock.prototype,'present');
spyOn(ModalMock.prototype,'onDidDismiss');
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
expect(ModalControllerMock.prototype.create).toHaveBeenCalledWith(
VehicleForm, {
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
)
expect(ModalMock.prototype.present).toHaveBeenCalled();
expect(ModalMock.prototype.onDidDismiss).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
expect(ModalMock.prototype.present).toHaveBeenCalled();
expect(ModalMock.prototype.onDidDismiss).toHaveBeenCalled();
Typescript Error
Cannot find name 'it'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
it('should open model to update asset', fakeAsync(() => {
spyOn(ModalControllerMock.prototype,'create').and.returnValue(modalMock);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
it('should open model to update asset', fakeAsync(() => {
spyOn(ModalControllerMock.prototype,'create').and.returnValue(modalMock);
spyOn(ModalMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
spyOn(ModalControllerMock.prototype,'create').and.returnValue(modalMock);
spyOn(ModalMock.prototype,'present');
spyOn(ModalMock.prototype,'onDidDismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
spyOn(ModalMock.prototype,'present');
spyOn(ModalMock.prototype,'onDidDismiss');
let assetIdentifier = 'assetIdentifier';
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
expect(ModalControllerMock.prototype.create).toHaveBeenCalledWith(
VehicleForm, {
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
)
expect(ModalMock.prototype.present).toHaveBeenCalled();
expect(ModalMock.prototype.onDidDismiss).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
expect(ModalMock.prototype.present).toHaveBeenCalled();
expect(ModalMock.prototype.onDidDismiss).toHaveBeenCalled();
Typescript Error
Cannot find name 'it'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
it('should get all Vehicle assets after an add Vehicle form is completed', fakeAsync(() => {
const modalCtrl = fixture.debugElement.injector.get(ModalController);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
spyOn(AlertMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
spyOn(AlertMock.prototype,'present');
spyOn(modalCtrl, 'create').and.callThrough();
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
spyOn(AlertMock.prototype,'present');
spyOn(modalCtrl, 'create').and.callThrough();
spyOn(modal, 'present').and.callThrough();
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
spyOn(modalCtrl, 'create').and.callThrough();
spyOn(modal, 'present').and.callThrough();
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
expect(modal.present).toHaveBeenCalled();
expect(serviceVehiclePageMock.prototype.getAll).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
expect(modal.present).toHaveBeenCalled();
expect(serviceVehiclePageMock.prototype.getAll).toHaveBeenCalled();
expect(component.currentItems).toEqual([VehicleOne,VehicleTwo,VehicleThree]);
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
expect(serviceVehiclePageMock.prototype.getAll).toHaveBeenCalled();
expect(component.currentItems).toEqual([VehicleOne,VehicleTwo,VehicleThree]);
expect(component.items).toEqual([VehicleOne,VehicleTwo,VehicleThree]);
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
expect(component.currentItems).toEqual([VehicleOne,VehicleTwo,VehicleThree]);
expect(component.items).toEqual([VehicleOne,VehicleTwo,VehicleThree]);
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
expect(component.items).toEqual([VehicleOne,VehicleTwo,VehicleThree]);
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
expect(AlertControllerMock.prototype.create).toHaveBeenCalledWith({
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
expect(AlertControllerMock.prototype.create).toHaveBeenCalledWith({
title: 'Added Vehicle',
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
});
expect(AlertMock.prototype.present).toHaveBeenCalled();
Typescript Error
Cannot find name 'it'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
it('should handle add Vehicle form dismissal', fakeAsync(() => {
const modalCtrl = fixture.debugElement.injector.get(ModalController);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
spyOn(AlertMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
spyOn(AlertMock.prototype,'present');
spyOn(modalCtrl, 'create').and.callThrough();
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
spyOn(AlertMock.prototype,'present');
spyOn(modalCtrl, 'create').and.callThrough();
spyOn(modal, 'present').and.callThrough();
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
spyOn(modalCtrl, 'create').and.callThrough();
spyOn(modal, 'present').and.callThrough();
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
expect(modal.present).toHaveBeenCalled();
expect(component.currentItems).not.toEqual([VehicleOne,VehicleTwo,VehicleThree]);
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
expect(modal.present).toHaveBeenCalled();
expect(component.currentItems).not.toEqual([VehicleOne,VehicleTwo,VehicleThree]);
expect(component.items).not.toEqual([VehicleOne,VehicleTwo,VehicleThree]);
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
expect(component.currentItems).not.toEqual([VehicleOne,VehicleTwo,VehicleThree]);
expect(component.items).not.toEqual([VehicleOne,VehicleTwo,VehicleThree]);
expect(LoadingMock.prototype.dismiss).not.toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
expect(component.items).not.toEqual([VehicleOne,VehicleTwo,VehicleThree]);
expect(LoadingMock.prototype.dismiss).not.toHaveBeenCalled();
expect(AlertControllerMock.prototype.create).not.toHaveBeenCalledWith({
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
expect(LoadingMock.prototype.dismiss).not.toHaveBeenCalled();
expect(AlertControllerMock.prototype.create).not.toHaveBeenCalledWith({
title: 'Added Vehicle',
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
});
expect(AlertMock.prototype.present).not.toHaveBeenCalled();
Typescript Error
Cannot find name 'it'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
it('should get all Vehicle assets after an update Vehicle form is completed', fakeAsync(() => {
const modalCtrl = fixture.debugElement.injector.get(ModalController);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
spyOn(AlertMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
spyOn(AlertMock.prototype,'present');
spyOn(modalCtrl, 'create').and.callThrough();
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
spyOn(AlertMock.prototype,'present');
spyOn(modalCtrl, 'create').and.callThrough();
spyOn(modal, 'present').and.callThrough();
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
spyOn(modalCtrl, 'create').and.callThrough();
spyOn(modal, 'present').and.callThrough();
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
expect(modal.present).toHaveBeenCalled();
expect(serviceVehiclePageMock.prototype.getAll).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
expect(modal.present).toHaveBeenCalled();
expect(serviceVehiclePageMock.prototype.getAll).toHaveBeenCalled();
expect(component.currentItems).toEqual([VehicleOne,VehicleTwo,VehicleThree]);
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
expect(serviceVehiclePageMock.prototype.getAll).toHaveBeenCalled();
expect(component.currentItems).toEqual([VehicleOne,VehicleTwo,VehicleThree]);
expect(component.items).toEqual([VehicleOne,VehicleTwo,VehicleThree]);
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
expect(component.currentItems).toEqual([VehicleOne,VehicleTwo,VehicleThree]);
expect(component.items).toEqual([VehicleOne,VehicleTwo,VehicleThree]);
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
expect(component.items).toEqual([VehicleOne,VehicleTwo,VehicleThree]);
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
expect(AlertControllerMock.prototype.create).toHaveBeenCalledWith({
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
expect(AlertControllerMock.prototype.create).toHaveBeenCalledWith({
title: 'Updated Vehicle',
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
});
expect(AlertMock.prototype.present).toHaveBeenCalled();
Typescript Error
Cannot find name 'it'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
it('should handle update Vehicle form dismissal', fakeAsync(() => {
const modalCtrl = fixture.debugElement.injector.get(ModalController);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
spyOn(AlertMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
spyOn(AlertMock.prototype,'present');
spyOn(modalCtrl, 'create').and.callThrough();
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
spyOn(AlertMock.prototype,'present');
spyOn(modalCtrl, 'create').and.callThrough();
spyOn(modal, 'present').and.callThrough();
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
spyOn(modalCtrl, 'create').and.callThrough();
spyOn(modal, 'present').and.callThrough();
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
expect(modal.present).toHaveBeenCalled();
expect(component.currentItems).not.toEqual([VehicleOne,VehicleTwo,VehicleThree]);
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
expect(modal.present).toHaveBeenCalled();
expect(component.currentItems).not.toEqual([VehicleOne,VehicleTwo,VehicleThree]);
expect(component.items).not.toEqual([VehicleOne,VehicleTwo,VehicleThree]);
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
expect(component.currentItems).not.toEqual([VehicleOne,VehicleTwo,VehicleThree]);
expect(component.items).not.toEqual([VehicleOne,VehicleTwo,VehicleThree]);
expect(LoadingMock.prototype.dismiss).not.toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
expect(component.items).not.toEqual([VehicleOne,VehicleTwo,VehicleThree]);
expect(LoadingMock.prototype.dismiss).not.toHaveBeenCalled();
expect(AlertControllerMock.prototype.create).not.toHaveBeenCalledWith({
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
expect(LoadingMock.prototype.dismiss).not.toHaveBeenCalled();
expect(AlertControllerMock.prototype.create).not.toHaveBeenCalledWith({
title: 'Updated Vehicle',
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.component.spec.ts
});
expect(AlertMock.prototype.present).not.toHaveBeenCalled();
Typescript Error
Cannot find name 'describe'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
describe('VehicleForm', () => {
let fixture;
Typescript Error
Cannot find name 'beforeEach'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
beforeEach(async(() => {
Typescript Error
Cannot find name 'beforeEach'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
beforeEach(() => {
assetType = 'Vehicle';
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
assetType = 'Vehicle';
spyOn(serviceVehicle.prototype,'get').and.callThrough();
fixture = TestBed.createComponent(VehicleForm);
Typescript Error
Cannot find name 'it'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
it('should create VehicleForm component', () => {
expect(component instanceof VehicleForm).toBe(true);
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
it('should create VehicleForm component', () => {
expect(component instanceof VehicleForm).toBe(true);
});
Typescript Error
Cannot find name 'it'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
it('should have correct asset identifier property', () => {
expect(component.assetIdentifierProperty).toEqual('vin');
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
it('should have correct asset identifier property', () => {
expect(component.assetIdentifierProperty).toEqual('vin');
})
Typescript Error
Cannot find name 'it'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
it('should have correct title',() => {
component.formType = 'Add';
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
fixture.detectChanges();
expect(title.nativeElement.textContent).toContain(expectedTitle);
});
Typescript Error
Cannot find name 'it'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
it('should detect if update form is opened', fakeAsync(() => {
component.formType = 'Update';
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
spyOn(FormBuilderMock.prototype,'group').and.returnValue(formMock);
spyOn(FormMock.prototype,'setValue');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
spyOn(FormBuilderMock.prototype,'group').and.returnValue(formMock);
spyOn(FormMock.prototype,'setValue');
spyOn(FormMock.prototype,'get').and.returnValue(formObjectMock);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
spyOn(FormMock.prototype,'setValue');
spyOn(FormMock.prototype,'get').and.returnValue(formObjectMock);
spyOn(FormObjectMock.prototype,'disable');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
spyOn(FormMock.prototype,'get').and.returnValue(formObjectMock);
spyOn(FormObjectMock.prototype,'disable');
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
expect(LoadingControllerMock.prototype.create).toHaveBeenCalledWith({
content: 'Fetching Vehicle001'
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
expect(LoadingMock.prototype.present).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
expect(FormMock.prototype.get).toHaveBeenCalledWith('vin');
expect(FormObjectMock.prototype.disable).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
expect(FormMock.prototype.get).toHaveBeenCalledWith('vin');
expect(FormObjectMock.prototype.disable).toHaveBeenCalled();
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
expect(FormObjectMock.prototype.disable).toHaveBeenCalled();
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
}));
Typescript Error
Cannot find name 'it'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
it('should detect if add form is opened', fakeAsync(() => {
component.formType = 'Add';
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
spyOn(FormBuilderMock.prototype,'group').and.returnValue(formMock);
spyOn(FormMock.prototype,'setValue');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
spyOn(FormBuilderMock.prototype,'group').and.returnValue(formMock);
spyOn(FormMock.prototype,'setValue');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
spyOn(FormMock.prototype,'get').and.returnValue(formObjectMock);
spyOn(FormObjectMock.prototype,'enable');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
spyOn(FormMock.prototype,'get').and.returnValue(formObjectMock);
spyOn(FormObjectMock.prototype,'enable');
component.ionViewWillEnter();
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
expect(FormMock.prototype.get).toHaveBeenCalledWith('vin');
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
expect(FormObjectMock.prototype.enable).toHaveBeenCalled();
}));
Typescript Error
Cannot find name 'it'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
it('should submit an add form', fakeAsync(() => {
component.formType = 'Add';
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
spyOn(component,'addAsset');
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
expect(component.addAsset).toHaveBeenCalled();
Typescript Error
Cannot find name 'it'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
it('should submit an update form', fakeAsync(() => {
component.formType = 'Update';
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
spyOn(component,'updateAsset');
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
expect(component.updateAsset).toHaveBeenCalled();
Typescript Error
Cannot find name 'it'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
it('should add an asset', fakeAsync(() => {
component.formType = 'Add';
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
spyOn(serviceVehicle.prototype,'add').and.returnValue(new Promise((resolve,reject)=>{resolve()}));
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
spyOn(LoadingMock.prototype,'present');
spyOn(serviceVehicle.prototype,'add').and.returnValue(new Promise((resolve,reject)=>{resolve()}));
spyOn(ViewControllerMock,'dismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
spyOn(serviceVehicle.prototype,'add').and.returnValue(new Promise((resolve,reject)=>{resolve()}));
spyOn(ViewControllerMock,'dismiss');
component.addAsset();
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
expect(LoadingControllerMock.prototype.create).toHaveBeenCalledWith({
content: 'Adding Vehicle...'
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
expect(LoadingMock.prototype.present).toHaveBeenCalled();
expect(serviceVehicle.prototype.add).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
expect(LoadingMock.prototype.present).toHaveBeenCalled();
expect(serviceVehicle.prototype.add).toHaveBeenCalled();
expect(ViewControllerMock.dismiss).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
expect(serviceVehicle.prototype.add).toHaveBeenCalled();
expect(ViewControllerMock.dismiss).toHaveBeenCalled();
}));
Typescript Error
Cannot find name 'it'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
it('should throw an error for invalid add asset', fakeAsync(() => {
component.formType = 'Add';
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
let json = JSON.stringify({error:{message:'Some error'}});
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
let json = JSON.stringify({error:{message:'Some error'}});
spyOn(serviceVehicle.prototype,'add').and.returnValue(new Promise((resolve,reject) => {
reject({_body:json})
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
}));
spyOn(ViewControllerMock,'dismiss');
component.addAsset();
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
expect(LoadingControllerMock.prototype.create).toHaveBeenCalledWith({
content: 'Adding Vehicle...'
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
expect(LoadingMock.prototype.present).toHaveBeenCalled();
expect(serviceVehicle.prototype.add).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
expect(LoadingMock.prototype.present).toHaveBeenCalled();
expect(serviceVehicle.prototype.add).toHaveBeenCalled();
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
expect(serviceVehicle.prototype.add).toHaveBeenCalled();
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
expect(component.error).toEqual('Some error');
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
expect(component.error).toEqual('Some error');
}));
Typescript Error
Cannot find name 'it'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
it('should update an asset', fakeAsync(() => {
component.formType = 'Update';
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
spyOn(serviceVehicle.prototype,'update').and.returnValue(new Promise((resolve,reject)=>{resolve()}));
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
spyOn(LoadingMock.prototype,'present');
spyOn(serviceVehicle.prototype,'update').and.returnValue(new Promise((resolve,reject)=>{resolve()}));
spyOn(ViewControllerMock,'dismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
spyOn(serviceVehicle.prototype,'update').and.returnValue(new Promise((resolve,reject)=>{resolve()}));
spyOn(ViewControllerMock,'dismiss');
spyOn(FormMock.prototype,'get').and.returnValue(formObjectMock);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
spyOn(ViewControllerMock,'dismiss');
spyOn(FormMock.prototype,'get').and.returnValue(formObjectMock);
spyOn(FormObjectMock.prototype,'enable');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
spyOn(FormMock.prototype,'get').and.returnValue(formObjectMock);
spyOn(FormObjectMock.prototype,'enable');
component.updateAsset();
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
expect(LoadingControllerMock.prototype.create).toHaveBeenCalledWith({
content: 'Updating Vehicle...'
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
expect(LoadingMock.prototype.present).toHaveBeenCalled();
expect(serviceVehicle.prototype.update).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
expect(LoadingMock.prototype.present).toHaveBeenCalled();
expect(serviceVehicle.prototype.update).toHaveBeenCalled();
expect(ViewControllerMock.dismiss).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
expect(serviceVehicle.prototype.update).toHaveBeenCalled();
expect(ViewControllerMock.dismiss).toHaveBeenCalled();
}));
Typescript Error
Cannot find name 'it'.
src/app/pages/assets/Vehicle/Vehicle.form.component.spec.ts
it('should throw an error for invalid update asset', fakeAsync(() => {
component.formType = 'Update';
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/VehicleListing/VehicleListing.form.component.spec.ts
spyOn(serviceVehicleListing.prototype,'update').and.returnValue(new Promise((resolve,reject)=>{resolve()}));
spyOn(ViewControllerMock,'dismiss');
spyOn(FormMock.prototype,'get').and.returnValue(formObjectMock);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/VehicleListing/VehicleListing.form.component.spec.ts
spyOn(ViewControllerMock,'dismiss');
spyOn(FormMock.prototype,'get').and.returnValue(formObjectMock);
spyOn(FormObjectMock.prototype,'enable');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/VehicleListing/VehicleListing.form.component.spec.ts
spyOn(FormMock.prototype,'get').and.returnValue(formObjectMock);
spyOn(FormObjectMock.prototype,'enable');
component.updateAsset();
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/VehicleListing/VehicleListing.form.component.spec.ts
expect(LoadingControllerMock.prototype.create).toHaveBeenCalledWith({
content: 'Updating VehicleListing...'
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/VehicleListing/VehicleListing.form.component.spec.ts
expect(LoadingMock.prototype.present).toHaveBeenCalled();
expect(serviceVehicleListing.prototype.update).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/VehicleListing/VehicleListing.form.component.spec.ts
expect(LoadingMock.prototype.present).toHaveBeenCalled();
expect(serviceVehicleListing.prototype.update).toHaveBeenCalled();
expect(ViewControllerMock.dismiss).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/VehicleListing/VehicleListing.form.component.spec.ts
expect(serviceVehicleListing.prototype.update).toHaveBeenCalled();
expect(ViewControllerMock.dismiss).toHaveBeenCalled();
}));
Typescript Error
Cannot find name 'it'.
src/app/pages/assets/VehicleListing/VehicleListing.form.component.spec.ts
it('should throw an error for invalid update asset', fakeAsync(() => {
component.formType = 'Update';
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/VehicleListing/VehicleListing.form.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/VehicleListing/VehicleListing.form.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/VehicleListing/VehicleListing.form.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
let json = JSON.stringify({error:{message:'Some error'}});
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/VehicleListing/VehicleListing.form.component.spec.ts
let json = JSON.stringify({error:{message:'Some error'}});
spyOn(serviceVehicleListing.prototype,'update').and.returnValue(new Promise((resolve,reject) => {
reject({_body:json})
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/VehicleListing/VehicleListing.form.component.spec.ts
}));
spyOn(ViewControllerMock,'dismiss');
component.updateAsset();
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/VehicleListing/VehicleListing.form.component.spec.ts
expect(LoadingControllerMock.prototype.create).toHaveBeenCalledWith({
content: 'Updating VehicleListing...'
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/VehicleListing/VehicleListing.form.component.spec.ts
expect(LoadingMock.prototype.present).toHaveBeenCalled();
expect(serviceVehicleListing.prototype.update).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/VehicleListing/VehicleListing.form.component.spec.ts
expect(LoadingMock.prototype.present).toHaveBeenCalled();
expect(serviceVehicleListing.prototype.update).toHaveBeenCalled();
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/VehicleListing/VehicleListing.form.component.spec.ts
expect(serviceVehicleListing.prototype.update).toHaveBeenCalled();
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
expect(component.error).toEqual('Some error');
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/VehicleListing/VehicleListing.form.component.spec.ts
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
expect(component.error).toEqual('Some error');
}));
Typescript Error
Cannot find name 'it'.
src/app/pages/assets/VehicleListing/VehicleListing.form.component.spec.ts
it('should be able to dismiss form', fakeAsync(() => {
spyOn(ViewControllerMock,'dismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/VehicleListing/VehicleListing.form.component.spec.ts
it('should be able to dismiss form', fakeAsync(() => {
spyOn(ViewControllerMock,'dismiss');
component.dismiss();
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/VehicleListing/VehicleListing.form.component.spec.ts
tick();
expect(ViewControllerMock.dismiss).toHaveBeenCalled();
}));
Typescript Error
Cannot find name 'describe'.
src/app/pages/assets/assets.component.spec.ts
describe('AssetsPage', () => {
let fixture;
Typescript Error
Cannot find name 'beforeEach'.
src/app/pages/assets/assets.component.spec.ts
beforeEach(async(() => {
Typescript Error
Cannot find name 'beforeEach'.
src/app/pages/assets/assets.component.spec.ts
beforeEach(() => {
fixture = TestBed.createComponent(AssetsPage);
Typescript Error
Cannot find name 'it'.
src/app/pages/assets/assets.component.spec.ts
it('should create AssetsPage component', () => {
expect(component instanceof AssetsPage).toBe(true);
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/assets.component.spec.ts
it('should create AssetsPage component', () => {
expect(component instanceof AssetsPage).toBe(true);
});
Typescript Error
Cannot find name 'it'.
src/app/pages/assets/assets.component.spec.ts
it('should have correct title',() => {
let title = fixture.debugElement.query(By.css('ion-title'));
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/assets.component.spec.ts
fixture.detectChanges();
expect(title.nativeElement.textContent).toContain('Assets');
});
Typescript Error
Cannot find name 'it'.
src/app/pages/assets/assets.component.spec.ts
it('should initialize with all assets',() => {
expect(component.assetList).toEqual([{'name':'Vehicle','component':VehiclePage},{'name':'VehicleListing','component':VehicleListingPage}]);
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/assets.component.spec.ts
it('should initialize with all assets',() => {
expect(component.assetList).toEqual([{'name':'Vehicle','component':VehiclePage},{'name':'VehicleListing','component':VehicleListingPage}]);
});
Typescript Error
Cannot find name 'it'.
src/app/pages/assets/assets.component.spec.ts
it('should push correct component for navigation',fakeAsync(() => {
let asset = {'component':{'some':'value'}};
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/assets/assets.component.spec.ts
let asset = {'component':{'some':'value'}};
spyOn(NavControllerMock.prototype,'push');
component.assetTapped('',asset);
Typescript Error
Cannot find name 'expect'.
src/app/pages/assets/assets.component.spec.ts
tick();
expect(NavControllerMock.prototype.push).toHaveBeenCalledWith({'some':'value'});
}));
Typescript Error
Cannot find name 'describe'.
src/app/pages/home/home.component.spec.ts
describe('HomePage', () => {
let fixture;
Typescript Error
Cannot find name 'beforeEach'.
src/app/pages/home/home.component.spec.ts
beforeEach(() => {
Typescript Error
Cannot find name 'beforeEach'.
src/app/pages/home/home.component.spec.ts
beforeEach(() => {
fixture = TestBed.createComponent(HomePage);
Typescript Error
Cannot find name 'it'.
src/app/pages/home/home.component.spec.ts
it('should create HomePage component', () => {
expect(component instanceof HomePage).toBe(true);
Typescript Error
Cannot find name 'expect'.
src/app/pages/home/home.component.spec.ts
it('should create HomePage component', () => {
expect(component instanceof HomePage).toBe(true);
});
Typescript Error
Cannot find name 'it'.
src/app/pages/home/home.component.spec.ts
it('should have correct title',() => {
let title = fixture.debugElement.query(By.css('ion-title'));
Typescript Error
Cannot find name 'expect'.
src/app/pages/home/home.component.spec.ts
fixture.detectChanges();
expect(title.nativeElement.textContent).toContain('Home');
});
Typescript Error
Cannot find name 'describe'.
src/app/pages/participant-view/participant-view.component.spec.ts
describe('ParticipantViewPage', () => {
let fixture;
Typescript Error
Cannot find name 'beforeEach'.
src/app/pages/participant-view/participant-view.component.spec.ts
let ViewControllerMock = mockView();
beforeEach(async(() => {
participantId = 'participantIdPassedFromAnotherComponent';
Typescript Error
Cannot find name 'beforeEach'.
src/app/pages/participant-view/participant-view.component.spec.ts
beforeEach(() => {
fixture = TestBed.createComponent(ParticipantViewPage);
Typescript Error
Cannot find name 'it'.
src/app/pages/participant-view/participant-view.component.spec.ts
it('should create ParticipantViewPage component', () => {
expect(component instanceof ParticipantViewPage).toBe(true);
Typescript Error
Cannot find name 'expect'.
src/app/pages/participant-view/participant-view.component.spec.ts
it('should create ParticipantViewPage component', () => {
expect(component instanceof ParticipantViewPage).toBe(true);
});
Typescript Error
Cannot find name 'it'.
src/app/pages/participant-view/participant-view.component.spec.ts
it('should have correct title',() => {
let title = fixture.debugElement.query(By.css('ion-title'));
Typescript Error
Cannot find name 'expect'.
src/app/pages/participant-view/participant-view.component.spec.ts
fixture.detectChanges();
expect(title.nativeElement.textContent).toContain(participantType+' // ' +participantId);
});
Typescript Error
Cannot find name 'it'.
src/app/pages/participant-view/participant-view.component.spec.ts
it('should get correct participant id',() => {
expect(component.participantId).toEqual('participantIdPassedFromAnotherComponent');
Typescript Error
Cannot find name 'expect'.
src/app/pages/participant-view/participant-view.component.spec.ts
it('should get correct participant id',() => {
expect(component.participantId).toEqual('participantIdPassedFromAnotherComponent');
});
Typescript Error
Cannot find name 'it'.
src/app/pages/participant-view/participant-view.component.spec.ts
it('should get correct participant type',() => {
expect(component.participantType).toEqual('participantTypePassedFromAnotherComponent')
Typescript Error
Cannot find name 'expect'.
src/app/pages/participant-view/participant-view.component.spec.ts
it('should get correct participant type',() => {
expect(component.participantType).toEqual('participantTypePassedFromAnotherComponent')
});
Typescript Error
Cannot find name 'it'.
src/app/pages/participant-view/participant-view.component.spec.ts
it('should fetch data and prepare the view', fakeAsync(() => {
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participant-view/participant-view.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participant-view/participant-view.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participant-view/participant-view.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
spyOn(component, 'getParticipant').and.returnValue(new Promise((resolve,reject)=>{
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participant-view/participant-view.component.spec.ts
spyOn(LoadingMock.prototype,'present');
spyOn(component, 'getParticipant').and.returnValue(new Promise((resolve,reject)=>{
resolve({'$class':'class','property1':'value1','property2':'value2'})
Typescript Error
Cannot find name 'expect'.
src/app/pages/participant-view/participant-view.component.spec.ts
expect(LoadingControllerMock.prototype.create).toHaveBeenCalledWith({
content: 'Fetching participantIdPassedFromAnotherComponent'
Typescript Error
Cannot find name 'expect'.
src/app/pages/participant-view/participant-view.component.spec.ts
expect(LoadingMock.prototype.present).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participant-view/participant-view.component.spec.ts
expect(component.loadedParticipant).toEqual({'$class':'class','property1':'value1','property2':'value2'});
expect(component.loadedParticipantKeys).toEqual(['property1','property2']);
Typescript Error
Cannot find name 'expect'.
src/app/pages/participant-view/participant-view.component.spec.ts
expect(component.loadedParticipant).toEqual({'$class':'class','property1':'value1','property2':'value2'});
expect(component.loadedParticipantKeys).toEqual(['property1','property2']);
Typescript Error
Cannot find name 'expect'.
src/app/pages/participant-view/participant-view.component.spec.ts
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
Typescript Error
Cannot find name 'it'.
src/app/pages/participant-view/participant-view.component.spec.ts
it('should call dataservice with correct arguments', () => {
component.participantId = participantId;
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participant-view/participant-view.component.spec.ts
component.participantType = participantType;
spyOn(DataServiceMock.prototype,'get');
component.getParticipant();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participant-view/participant-view.component.spec.ts
component.getParticipant();
expect(DataServiceMock.prototype.get).toHaveBeenCalledWith(participantType,participantId);
});
Typescript Error
Cannot find name 'it'.
src/app/pages/participant-view/participant-view.component.spec.ts
it('should dismiss modal', () => {
spyOn(ViewControllerMock,'dismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participant-view/participant-view.component.spec.ts
it('should dismiss modal', () => {
spyOn(ViewControllerMock,'dismiss');
component.dismiss();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participant-view/participant-view.component.spec.ts
component.dismiss();
expect(ViewControllerMock.dismiss).toHaveBeenCalled();
});
Typescript Error
Cannot find name 'describe'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
describe('AuctioneerPage', () => {
let fixture;
Typescript Error
Cannot find name 'beforeEach'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
beforeEach(async(() => {
Typescript Error
Cannot find name 'beforeEach'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
beforeEach(() => {
spyOn(serviceAuctioneerPageMock.prototype,'getAll').and.callThrough();
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
beforeEach(() => {
spyOn(serviceAuctioneerPageMock.prototype,'getAll').and.callThrough();
fixture = TestBed.createComponent(AuctioneerPage);
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
it('should create AuctioneerPage component', () => {
expect(component instanceof AuctioneerPage).toBe(true);
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
it('should create AuctioneerPage component', () => {
expect(component instanceof AuctioneerPage).toBe(true);
});
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
it('should have correct title',() => {
let title = fixture.debugElement.query(By.css('ion-title'));
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
fixture.detectChanges();
expect(title.nativeElement.textContent).toContain('Auctioneer');
});
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
it('should return Auctioneer participants', fakeAsync(() => {
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
it('should return Auctioneer participants', fakeAsync(() => {
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
expect(component.currentItems.length).toEqual(3);
expect(component.items.length).toEqual(3);
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
expect(component.currentItems.length).toEqual(3);
expect(component.items.length).toEqual(3);
}));
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
it('Auctioneer participants should be a Auctioneer type', fakeAsync(() => {
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
it('Auctioneer participants should be a Auctioneer type', fakeAsync(() => {
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
expect(component.currentItems[0] instanceof Auctioneer).toBe(true);
expect(component.currentItems[1] instanceof Auctioneer).toBe(true);
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
expect(component.currentItems[0] instanceof Auctioneer).toBe(true);
expect(component.currentItems[1] instanceof Auctioneer).toBe(true);
expect(component.currentItems[2] instanceof Auctioneer).toBe(true);
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
expect(component.currentItems[1] instanceof Auctioneer).toBe(true);
expect(component.currentItems[2] instanceof Auctioneer).toBe(true);
}));
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
it('should present and dismiss loading alert', fakeAsync(() => {
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
it('should present and dismiss loading alert', fakeAsync(() => {
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
expect(LoadingControllerMock.prototype.create).toHaveBeenCalled();
expect(LoadingMock.prototype.present).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
expect(LoadingControllerMock.prototype.create).toHaveBeenCalled();
expect(LoadingMock.prototype.present).toHaveBeenCalled();
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
expect(LoadingMock.prototype.present).toHaveBeenCalled();
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
expect(component.itemsLoaded).toEqual(true);
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
expect(component.itemsLoaded).toEqual(true);
}));
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
it('should get same items when no search text', fakeAsync(() => {
let ev = {target:{value:""}};
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
expect(component.currentItems).toEqual([AuctioneerOne,AuctioneerTwo,AuctioneerThree]);
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
it('should get some items when there is partially matching search text', fakeAsync(() => {
let ev = {target:{value:"3"}};
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
expect(component.items).toEqual([AuctioneerThree]);
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
it('should get no items when there is no matching search text', fakeAsync(() => {
let ev = {target:{value:"randomstring"}};
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
expect(component.items).toEqual([]);
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
it('should refresh and fetch latest items', fakeAsync(() => {
let refresher = {complete:function(){return;}};
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
spyOn(refresher,'complete');
component.refreshItems(refresher);
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
expect(component.currentItems).toEqual([AuctioneerOne,AuctioneerTwo,AuctioneerThree]);
expect(component.items).toEqual([AuctioneerOne,AuctioneerTwo,AuctioneerThree]);
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
expect(component.currentItems).toEqual([AuctioneerOne,AuctioneerTwo,AuctioneerThree]);
expect(component.items).toEqual([AuctioneerOne,AuctioneerTwo,AuctioneerThree]);
expect(refresher.complete).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
expect(component.items).toEqual([AuctioneerOne,AuctioneerTwo,AuctioneerThree]);
expect(refresher.complete).toHaveBeenCalled();
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
it('should open model to view participant', fakeAsync(() => {
spyOn(ModalControllerMock.prototype,'create').and.returnValue(modalMock);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
it('should open model to view participant', fakeAsync(() => {
spyOn(ModalControllerMock.prototype,'create').and.returnValue(modalMock);
spyOn(ModalMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
spyOn(ModalControllerMock.prototype,'create').and.returnValue(modalMock);
spyOn(ModalMock.prototype,'present');
let participantIdentifier = 'participantIdentifier';
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
tick();
expect(ModalControllerMock.prototype.create).toHaveBeenCalledWith(
ParticipantViewPage, {
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
)
expect(ModalMock.prototype.present).toHaveBeenCalled();
}));
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
it('should show delete participant alert', fakeAsync(() => {
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
it('should show delete participant alert', fakeAsync(() => {
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
spyOn(AlertMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
spyOn(AlertMock.prototype,'present');
let participantIdentifier = 'participantIdentifier'
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
tick();
expect(AlertMock.prototype.present).toHaveBeenCalled();
}));
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
it('should open model to add participant', fakeAsync(() => {
spyOn(ModalControllerMock.prototype,'create').and.returnValue(modalMock);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
it('should open model to add participant', fakeAsync(() => {
spyOn(ModalControllerMock.prototype,'create').and.returnValue(modalMock);
spyOn(ModalMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
spyOn(ModalControllerMock.prototype,'create').and.returnValue(modalMock);
spyOn(ModalMock.prototype,'present');
spyOn(ModalMock.prototype,'onDidDismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
spyOn(ModalMock.prototype,'present');
spyOn(ModalMock.prototype,'onDidDismiss');
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
expect(ModalControllerMock.prototype.create).toHaveBeenCalledWith(
AuctioneerForm, {
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
)
expect(ModalMock.prototype.present).toHaveBeenCalled();
expect(ModalMock.prototype.onDidDismiss).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
expect(ModalMock.prototype.present).toHaveBeenCalled();
expect(ModalMock.prototype.onDidDismiss).toHaveBeenCalled();
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
it('should open model to update participant', fakeAsync(() => {
spyOn(ModalControllerMock.prototype,'create').and.returnValue(modalMock);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
it('should open model to update participant', fakeAsync(() => {
spyOn(ModalControllerMock.prototype,'create').and.returnValue(modalMock);
spyOn(ModalMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
spyOn(ModalControllerMock.prototype,'create').and.returnValue(modalMock);
spyOn(ModalMock.prototype,'present');
spyOn(ModalMock.prototype,'onDidDismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
spyOn(ModalMock.prototype,'present');
spyOn(ModalMock.prototype,'onDidDismiss');
let participantIdentifier = 'participantIdentifier';
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
expect(ModalControllerMock.prototype.create).toHaveBeenCalledWith(
AuctioneerForm, {
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
)
expect(ModalMock.prototype.present).toHaveBeenCalled();
expect(ModalMock.prototype.onDidDismiss).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
expect(ModalMock.prototype.present).toHaveBeenCalled();
expect(ModalMock.prototype.onDidDismiss).toHaveBeenCalled();
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
it('should get all Auctioneer participants after an add Auctioneer form is completed', fakeAsync(() => {
const modalCtrl = fixture.debugElement.injector.get(ModalController);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
spyOn(AlertMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
spyOn(AlertMock.prototype,'present');
spyOn(modalCtrl, 'create').and.callThrough();
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
spyOn(AlertMock.prototype,'present');
spyOn(modalCtrl, 'create').and.callThrough();
spyOn(modal, 'present').and.callThrough();
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
spyOn(modalCtrl, 'create').and.callThrough();
spyOn(modal, 'present').and.callThrough();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
expect(modal.present).toHaveBeenCalled();
expect(serviceAuctioneerPageMock.prototype.getAll).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
expect(modal.present).toHaveBeenCalled();
expect(serviceAuctioneerPageMock.prototype.getAll).toHaveBeenCalled();
expect(component.currentItems).toEqual([AuctioneerOne,AuctioneerTwo,AuctioneerThree]);
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
expect(serviceAuctioneerPageMock.prototype.getAll).toHaveBeenCalled();
expect(component.currentItems).toEqual([AuctioneerOne,AuctioneerTwo,AuctioneerThree]);
expect(component.items).toEqual([AuctioneerOne,AuctioneerTwo,AuctioneerThree]);
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
expect(component.currentItems).toEqual([AuctioneerOne,AuctioneerTwo,AuctioneerThree]);
expect(component.items).toEqual([AuctioneerOne,AuctioneerTwo,AuctioneerThree]);
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
expect(component.items).toEqual([AuctioneerOne,AuctioneerTwo,AuctioneerThree]);
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
expect(AlertControllerMock.prototype.create).toHaveBeenCalledWith({
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
expect(AlertControllerMock.prototype.create).toHaveBeenCalledWith({
title: 'Added Auctioneer',
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
});
expect(AlertMock.prototype.present).toHaveBeenCalled();
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
it('should handle add Auctioneer form dismissal', fakeAsync(() => {
const modalCtrl = fixture.debugElement.injector.get(ModalController);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
spyOn(AlertMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
spyOn(AlertMock.prototype,'present');
spyOn(modalCtrl, 'create').and.callThrough();
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
spyOn(AlertMock.prototype,'present');
spyOn(modalCtrl, 'create').and.callThrough();
spyOn(modal, 'present').and.callThrough();
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
spyOn(modalCtrl, 'create').and.callThrough();
spyOn(modal, 'present').and.callThrough();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
expect(modal.present).toHaveBeenCalled();
expect(component.currentItems).not.toEqual([AuctioneerOne,AuctioneerTwo,AuctioneerThree]);
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
expect(modal.present).toHaveBeenCalled();
expect(component.currentItems).not.toEqual([AuctioneerOne,AuctioneerTwo,AuctioneerThree]);
expect(component.items).not.toEqual([AuctioneerOne,AuctioneerTwo,AuctioneerThree]);
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
expect(component.currentItems).not.toEqual([AuctioneerOne,AuctioneerTwo,AuctioneerThree]);
expect(component.items).not.toEqual([AuctioneerOne,AuctioneerTwo,AuctioneerThree]);
expect(LoadingMock.prototype.dismiss).not.toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
expect(component.items).not.toEqual([AuctioneerOne,AuctioneerTwo,AuctioneerThree]);
expect(LoadingMock.prototype.dismiss).not.toHaveBeenCalled();
expect(AlertControllerMock.prototype.create).not.toHaveBeenCalledWith({
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
expect(LoadingMock.prototype.dismiss).not.toHaveBeenCalled();
expect(AlertControllerMock.prototype.create).not.toHaveBeenCalledWith({
title: 'Added Auctioneer',
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
});
expect(AlertMock.prototype.present).not.toHaveBeenCalled();
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
it('should get all Auctioneer participants after an update Auctioneer form is completed', fakeAsync(() => {
const modalCtrl = fixture.debugElement.injector.get(ModalController);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
spyOn(AlertMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
spyOn(AlertMock.prototype,'present');
spyOn(modalCtrl, 'create').and.callThrough();
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
spyOn(AlertMock.prototype,'present');
spyOn(modalCtrl, 'create').and.callThrough();
spyOn(modal, 'present').and.callThrough();
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
spyOn(modalCtrl, 'create').and.callThrough();
spyOn(modal, 'present').and.callThrough();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
expect(modal.present).toHaveBeenCalled();
expect(serviceAuctioneerPageMock.prototype.getAll).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
expect(modal.present).toHaveBeenCalled();
expect(serviceAuctioneerPageMock.prototype.getAll).toHaveBeenCalled();
expect(component.currentItems).toEqual([AuctioneerOne,AuctioneerTwo,AuctioneerThree]);
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
expect(serviceAuctioneerPageMock.prototype.getAll).toHaveBeenCalled();
expect(component.currentItems).toEqual([AuctioneerOne,AuctioneerTwo,AuctioneerThree]);
expect(component.items).toEqual([AuctioneerOne,AuctioneerTwo,AuctioneerThree]);
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
expect(component.currentItems).toEqual([AuctioneerOne,AuctioneerTwo,AuctioneerThree]);
expect(component.items).toEqual([AuctioneerOne,AuctioneerTwo,AuctioneerThree]);
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
expect(component.items).toEqual([AuctioneerOne,AuctioneerTwo,AuctioneerThree]);
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
expect(AlertControllerMock.prototype.create).toHaveBeenCalledWith({
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
expect(AlertControllerMock.prototype.create).toHaveBeenCalledWith({
title: 'Updated Auctioneer',
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
});
expect(AlertMock.prototype.present).toHaveBeenCalled();
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
it('should handle update Auctioneer form dismissal', fakeAsync(() => {
const modalCtrl = fixture.debugElement.injector.get(ModalController);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
spyOn(AlertMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
spyOn(AlertMock.prototype,'present');
spyOn(modalCtrl, 'create').and.callThrough();
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
spyOn(AlertMock.prototype,'present');
spyOn(modalCtrl, 'create').and.callThrough();
spyOn(modal, 'present').and.callThrough();
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
spyOn(modalCtrl, 'create').and.callThrough();
spyOn(modal, 'present').and.callThrough();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
expect(modal.present).toHaveBeenCalled();
expect(component.currentItems).not.toEqual([AuctioneerOne,AuctioneerTwo,AuctioneerThree]);
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
expect(modal.present).toHaveBeenCalled();
expect(component.currentItems).not.toEqual([AuctioneerOne,AuctioneerTwo,AuctioneerThree]);
expect(component.items).not.toEqual([AuctioneerOne,AuctioneerTwo,AuctioneerThree]);
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
expect(component.currentItems).not.toEqual([AuctioneerOne,AuctioneerTwo,AuctioneerThree]);
expect(component.items).not.toEqual([AuctioneerOne,AuctioneerTwo,AuctioneerThree]);
expect(LoadingMock.prototype.dismiss).not.toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
expect(component.items).not.toEqual([AuctioneerOne,AuctioneerTwo,AuctioneerThree]);
expect(LoadingMock.prototype.dismiss).not.toHaveBeenCalled();
expect(AlertControllerMock.prototype.create).not.toHaveBeenCalledWith({
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
expect(LoadingMock.prototype.dismiss).not.toHaveBeenCalled();
expect(AlertControllerMock.prototype.create).not.toHaveBeenCalledWith({
title: 'Updated Auctioneer',
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.component.spec.ts
});
expect(AlertMock.prototype.present).not.toHaveBeenCalled();
Typescript Error
Cannot find name 'describe'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
describe('AuctioneerForm', () => {
let fixture;
Typescript Error
Cannot find name 'beforeEach'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
beforeEach(async(() => {
Typescript Error
Cannot find name 'beforeEach'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
beforeEach(() => {
participantType = 'Auctioneer';
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
participantType = 'Auctioneer';
spyOn(serviceAuctioneer.prototype,'get').and.callThrough();
fixture = TestBed.createComponent(AuctioneerForm);
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
it('should create AuctioneerForm component', () => {
expect(component instanceof AuctioneerForm).toBe(true);
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
it('should create AuctioneerForm component', () => {
expect(component instanceof AuctioneerForm).toBe(true);
});
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
it('should have correct participant identifier property', () => {
expect(component.participantIdentifierProperty).toEqual('email');
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
it('should have correct participant identifier property', () => {
expect(component.participantIdentifierProperty).toEqual('email');
})
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
it('should have correct title',() => {
component.formType = 'Add';
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
fixture.detectChanges();
expect(title.nativeElement.textContent).toContain(expectedTitle);
});
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
it('should detect if update form is opened', fakeAsync(() => {
component.formType = 'Update';
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
spyOn(FormBuilderMock.prototype,'group').and.returnValue(formMock);
spyOn(FormMock.prototype,'setValue');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
spyOn(FormBuilderMock.prototype,'group').and.returnValue(formMock);
spyOn(FormMock.prototype,'setValue');
spyOn(FormMock.prototype,'get').and.returnValue(formObjectMock);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
spyOn(FormMock.prototype,'setValue');
spyOn(FormMock.prototype,'get').and.returnValue(formObjectMock);
spyOn(FormObjectMock.prototype,'disable');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
spyOn(FormMock.prototype,'get').and.returnValue(formObjectMock);
spyOn(FormObjectMock.prototype,'disable');
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
expect(LoadingControllerMock.prototype.create).toHaveBeenCalledWith({
content: 'Fetching Auctioneer001'
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
expect(LoadingMock.prototype.present).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
expect(FormMock.prototype.get).toHaveBeenCalledWith('email');
expect(FormObjectMock.prototype.disable).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
expect(FormMock.prototype.get).toHaveBeenCalledWith('email');
expect(FormObjectMock.prototype.disable).toHaveBeenCalled();
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
expect(FormObjectMock.prototype.disable).toHaveBeenCalled();
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
}));
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
it('should detect if add form is opened', fakeAsync(() => {
component.formType = 'Add';
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
spyOn(FormBuilderMock.prototype,'group').and.returnValue(formMock);
spyOn(FormMock.prototype,'setValue');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
spyOn(FormBuilderMock.prototype,'group').and.returnValue(formMock);
spyOn(FormMock.prototype,'setValue');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
spyOn(FormMock.prototype,'get').and.returnValue(formObjectMock);
spyOn(FormObjectMock.prototype,'enable');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
spyOn(FormMock.prototype,'get').and.returnValue(formObjectMock);
spyOn(FormObjectMock.prototype,'enable');
component.ionViewWillEnter();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
expect(FormMock.prototype.get).toHaveBeenCalledWith('email');
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
expect(FormObjectMock.prototype.enable).toHaveBeenCalled();
}));
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
it('should submit an add form', fakeAsync(() => {
component.formType = 'Add';
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
spyOn(component,'addParticipant');
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
expect(component.addParticipant).toHaveBeenCalled();
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
it('should submit an update form', fakeAsync(() => {
component.formType = 'Update';
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
spyOn(component,'updateParticipant');
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
expect(component.updateParticipant).toHaveBeenCalled();
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
it('should add an participant', fakeAsync(() => {
component.formType = 'Add';
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
spyOn(serviceAuctioneer.prototype,'add').and.returnValue(new Promise((resolve,reject)=>{resolve()}));
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
spyOn(LoadingMock.prototype,'present');
spyOn(serviceAuctioneer.prototype,'add').and.returnValue(new Promise((resolve,reject)=>{resolve()}));
spyOn(ViewControllerMock,'dismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
spyOn(serviceAuctioneer.prototype,'add').and.returnValue(new Promise((resolve,reject)=>{resolve()}));
spyOn(ViewControllerMock,'dismiss');
component.addParticipant();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
expect(LoadingControllerMock.prototype.create).toHaveBeenCalledWith({
content: 'Adding Auctioneer...'
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
expect(LoadingMock.prototype.present).toHaveBeenCalled();
expect(serviceAuctioneer.prototype.add).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
expect(LoadingMock.prototype.present).toHaveBeenCalled();
expect(serviceAuctioneer.prototype.add).toHaveBeenCalled();
expect(ViewControllerMock.dismiss).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
expect(serviceAuctioneer.prototype.add).toHaveBeenCalled();
expect(ViewControllerMock.dismiss).toHaveBeenCalled();
}));
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
it('should throw an error for invalid add participant', fakeAsync(() => {
component.formType = 'Add';
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
let json = JSON.stringify({error:{message:'Some error'}});
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
let json = JSON.stringify({error:{message:'Some error'}});
spyOn(serviceAuctioneer.prototype,'add').and.returnValue(new Promise((resolve,reject) => {
reject({_body:json})
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
}));
spyOn(ViewControllerMock,'dismiss');
component.addParticipant();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
expect(LoadingControllerMock.prototype.create).toHaveBeenCalledWith({
content: 'Adding Auctioneer...'
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
expect(LoadingMock.prototype.present).toHaveBeenCalled();
expect(serviceAuctioneer.prototype.add).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
expect(LoadingMock.prototype.present).toHaveBeenCalled();
expect(serviceAuctioneer.prototype.add).toHaveBeenCalled();
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
expect(serviceAuctioneer.prototype.add).toHaveBeenCalled();
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
expect(component.error).toEqual('Some error');
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
expect(component.error).toEqual('Some error');
}));
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
it('should update an participant', fakeAsync(() => {
component.formType = 'Update';
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
spyOn(serviceAuctioneer.prototype,'update').and.returnValue(new Promise((resolve,reject)=>{resolve()}));
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
spyOn(LoadingMock.prototype,'present');
spyOn(serviceAuctioneer.prototype,'update').and.returnValue(new Promise((resolve,reject)=>{resolve()}));
spyOn(ViewControllerMock,'dismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
spyOn(serviceAuctioneer.prototype,'update').and.returnValue(new Promise((resolve,reject)=>{resolve()}));
spyOn(ViewControllerMock,'dismiss');
spyOn(FormMock.prototype,'get').and.returnValue(formObjectMock);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
spyOn(ViewControllerMock,'dismiss');
spyOn(FormMock.prototype,'get').and.returnValue(formObjectMock);
spyOn(FormObjectMock.prototype,'enable');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
spyOn(FormMock.prototype,'get').and.returnValue(formObjectMock);
spyOn(FormObjectMock.prototype,'enable');
component.updateParticipant();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
expect(LoadingControllerMock.prototype.create).toHaveBeenCalledWith({
content: 'Updating Auctioneer...'
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
expect(LoadingMock.prototype.present).toHaveBeenCalled();
expect(serviceAuctioneer.prototype.update).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
expect(LoadingMock.prototype.present).toHaveBeenCalled();
expect(serviceAuctioneer.prototype.update).toHaveBeenCalled();
expect(ViewControllerMock.dismiss).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
expect(serviceAuctioneer.prototype.update).toHaveBeenCalled();
expect(ViewControllerMock.dismiss).toHaveBeenCalled();
}));
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
it('should throw an error for invalid update participant', fakeAsync(() => {
component.formType = 'Update';
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
let json = JSON.stringify({error:{message:'Some error'}});
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
let json = JSON.stringify({error:{message:'Some error'}});
spyOn(serviceAuctioneer.prototype,'update').and.returnValue(new Promise((resolve,reject) => {
reject({_body:json})
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
}));
spyOn(ViewControllerMock,'dismiss');
component.updateParticipant();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
expect(LoadingControllerMock.prototype.create).toHaveBeenCalledWith({
content: 'Updating Auctioneer...'
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
expect(LoadingMock.prototype.present).toHaveBeenCalled();
expect(serviceAuctioneer.prototype.update).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
expect(LoadingMock.prototype.present).toHaveBeenCalled();
expect(serviceAuctioneer.prototype.update).toHaveBeenCalled();
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
expect(serviceAuctioneer.prototype.update).toHaveBeenCalled();
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
expect(component.error).toEqual('Some error');
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
expect(component.error).toEqual('Some error');
}));
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
it('should be able to dismiss form', fakeAsync(() => {
spyOn(ViewControllerMock,'dismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
it('should be able to dismiss form', fakeAsync(() => {
spyOn(ViewControllerMock,'dismiss');
component.dismiss();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Auctioneer/Auctioneer.form.component.spec.ts
tick();
expect(ViewControllerMock.dismiss).toHaveBeenCalled();
}));
Typescript Error
Cannot find name 'describe'.
src/app/pages/participants/Member/Member.component.spec.ts
describe('MemberPage', () => {
let fixture;
Typescript Error
Cannot find name 'beforeEach'.
src/app/pages/participants/Member/Member.component.spec.ts
beforeEach(async(() => {
Typescript Error
Cannot find name 'beforeEach'.
src/app/pages/participants/Member/Member.component.spec.ts
beforeEach(() => {
spyOn(serviceMemberPageMock.prototype,'getAll').and.callThrough();
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.component.spec.ts
beforeEach(() => {
spyOn(serviceMemberPageMock.prototype,'getAll').and.callThrough();
fixture = TestBed.createComponent(MemberPage);
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Member/Member.component.spec.ts
it('should create MemberPage component', () => {
expect(component instanceof MemberPage).toBe(true);
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
it('should create MemberPage component', () => {
expect(component instanceof MemberPage).toBe(true);
});
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Member/Member.component.spec.ts
it('should have correct title',() => {
let title = fixture.debugElement.query(By.css('ion-title'));
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
fixture.detectChanges();
expect(title.nativeElement.textContent).toContain('Member');
});
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Member/Member.component.spec.ts
it('should return Member participants', fakeAsync(() => {
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.component.spec.ts
it('should return Member participants', fakeAsync(() => {
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
expect(component.currentItems.length).toEqual(3);
expect(component.items.length).toEqual(3);
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
expect(component.currentItems.length).toEqual(3);
expect(component.items.length).toEqual(3);
}));
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Member/Member.component.spec.ts
it('Member participants should be a Member type', fakeAsync(() => {
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.component.spec.ts
it('Member participants should be a Member type', fakeAsync(() => {
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
expect(component.currentItems[0] instanceof Member).toBe(true);
expect(component.currentItems[1] instanceof Member).toBe(true);
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
expect(component.currentItems[0] instanceof Member).toBe(true);
expect(component.currentItems[1] instanceof Member).toBe(true);
expect(component.currentItems[2] instanceof Member).toBe(true);
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
expect(component.currentItems[1] instanceof Member).toBe(true);
expect(component.currentItems[2] instanceof Member).toBe(true);
}));
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Member/Member.component.spec.ts
it('should present and dismiss loading alert', fakeAsync(() => {
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.component.spec.ts
it('should present and dismiss loading alert', fakeAsync(() => {
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
expect(LoadingControllerMock.prototype.create).toHaveBeenCalled();
expect(LoadingMock.prototype.present).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
expect(LoadingControllerMock.prototype.create).toHaveBeenCalled();
expect(LoadingMock.prototype.present).toHaveBeenCalled();
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
expect(LoadingMock.prototype.present).toHaveBeenCalled();
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
expect(component.itemsLoaded).toEqual(true);
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
expect(component.itemsLoaded).toEqual(true);
}));
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Member/Member.component.spec.ts
it('should get same items when no search text', fakeAsync(() => {
let ev = {target:{value:""}};
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
expect(component.currentItems).toEqual([MemberOne,MemberTwo,MemberThree]);
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Member/Member.component.spec.ts
it('should get some items when there is partially matching search text', fakeAsync(() => {
let ev = {target:{value:"3"}};
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
expect(component.items).toEqual([MemberThree]);
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Member/Member.component.spec.ts
it('should get no items when there is no matching search text', fakeAsync(() => {
let ev = {target:{value:"randomstring"}};
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
expect(component.items).toEqual([]);
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Member/Member.component.spec.ts
it('should refresh and fetch latest items', fakeAsync(() => {
let refresher = {complete:function(){return;}};
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.component.spec.ts
spyOn(refresher,'complete');
component.refreshItems(refresher);
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
expect(component.currentItems).toEqual([MemberOne,MemberTwo,MemberThree]);
expect(component.items).toEqual([MemberOne,MemberTwo,MemberThree]);
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
expect(component.currentItems).toEqual([MemberOne,MemberTwo,MemberThree]);
expect(component.items).toEqual([MemberOne,MemberTwo,MemberThree]);
expect(refresher.complete).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
expect(component.items).toEqual([MemberOne,MemberTwo,MemberThree]);
expect(refresher.complete).toHaveBeenCalled();
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Member/Member.component.spec.ts
it('should open model to view participant', fakeAsync(() => {
spyOn(ModalControllerMock.prototype,'create').and.returnValue(modalMock);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.component.spec.ts
it('should open model to view participant', fakeAsync(() => {
spyOn(ModalControllerMock.prototype,'create').and.returnValue(modalMock);
spyOn(ModalMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.component.spec.ts
spyOn(ModalControllerMock.prototype,'create').and.returnValue(modalMock);
spyOn(ModalMock.prototype,'present');
let participantIdentifier = 'participantIdentifier';
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
tick();
expect(ModalControllerMock.prototype.create).toHaveBeenCalledWith(
ParticipantViewPage, {
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
)
expect(ModalMock.prototype.present).toHaveBeenCalled();
}));
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Member/Member.component.spec.ts
it('should show delete participant alert', fakeAsync(() => {
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.component.spec.ts
it('should show delete participant alert', fakeAsync(() => {
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
spyOn(AlertMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.component.spec.ts
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
spyOn(AlertMock.prototype,'present');
let participantIdentifier = 'participantIdentifier'
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
tick();
expect(AlertMock.prototype.present).toHaveBeenCalled();
}));
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Member/Member.component.spec.ts
it('should open model to add participant', fakeAsync(() => {
spyOn(ModalControllerMock.prototype,'create').and.returnValue(modalMock);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.component.spec.ts
it('should open model to add participant', fakeAsync(() => {
spyOn(ModalControllerMock.prototype,'create').and.returnValue(modalMock);
spyOn(ModalMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.component.spec.ts
spyOn(ModalControllerMock.prototype,'create').and.returnValue(modalMock);
spyOn(ModalMock.prototype,'present');
spyOn(ModalMock.prototype,'onDidDismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.component.spec.ts
spyOn(ModalMock.prototype,'present');
spyOn(ModalMock.prototype,'onDidDismiss');
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
expect(ModalControllerMock.prototype.create).toHaveBeenCalledWith(
MemberForm, {
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
)
expect(ModalMock.prototype.present).toHaveBeenCalled();
expect(ModalMock.prototype.onDidDismiss).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
expect(ModalMock.prototype.present).toHaveBeenCalled();
expect(ModalMock.prototype.onDidDismiss).toHaveBeenCalled();
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Member/Member.component.spec.ts
it('should open model to update participant', fakeAsync(() => {
spyOn(ModalControllerMock.prototype,'create').and.returnValue(modalMock);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.component.spec.ts
it('should open model to update participant', fakeAsync(() => {
spyOn(ModalControllerMock.prototype,'create').and.returnValue(modalMock);
spyOn(ModalMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.component.spec.ts
spyOn(ModalControllerMock.prototype,'create').and.returnValue(modalMock);
spyOn(ModalMock.prototype,'present');
spyOn(ModalMock.prototype,'onDidDismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.component.spec.ts
spyOn(ModalMock.prototype,'present');
spyOn(ModalMock.prototype,'onDidDismiss');
let participantIdentifier = 'participantIdentifier';
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
expect(ModalControllerMock.prototype.create).toHaveBeenCalledWith(
MemberForm, {
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
)
expect(ModalMock.prototype.present).toHaveBeenCalled();
expect(ModalMock.prototype.onDidDismiss).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
expect(ModalMock.prototype.present).toHaveBeenCalled();
expect(ModalMock.prototype.onDidDismiss).toHaveBeenCalled();
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Member/Member.component.spec.ts
it('should get all Member participants after an add Member form is completed', fakeAsync(() => {
const modalCtrl = fixture.debugElement.injector.get(ModalController);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
spyOn(AlertMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.component.spec.ts
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
spyOn(AlertMock.prototype,'present');
spyOn(modalCtrl, 'create').and.callThrough();
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.component.spec.ts
spyOn(AlertMock.prototype,'present');
spyOn(modalCtrl, 'create').and.callThrough();
spyOn(modal, 'present').and.callThrough();
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.component.spec.ts
spyOn(modalCtrl, 'create').and.callThrough();
spyOn(modal, 'present').and.callThrough();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
expect(modal.present).toHaveBeenCalled();
expect(serviceMemberPageMock.prototype.getAll).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
expect(modal.present).toHaveBeenCalled();
expect(serviceMemberPageMock.prototype.getAll).toHaveBeenCalled();
expect(component.currentItems).toEqual([MemberOne,MemberTwo,MemberThree]);
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
expect(serviceMemberPageMock.prototype.getAll).toHaveBeenCalled();
expect(component.currentItems).toEqual([MemberOne,MemberTwo,MemberThree]);
expect(component.items).toEqual([MemberOne,MemberTwo,MemberThree]);
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
expect(component.currentItems).toEqual([MemberOne,MemberTwo,MemberThree]);
expect(component.items).toEqual([MemberOne,MemberTwo,MemberThree]);
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
expect(component.items).toEqual([MemberOne,MemberTwo,MemberThree]);
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
expect(AlertControllerMock.prototype.create).toHaveBeenCalledWith({
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
expect(AlertControllerMock.prototype.create).toHaveBeenCalledWith({
title: 'Added Member',
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
});
expect(AlertMock.prototype.present).toHaveBeenCalled();
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Member/Member.component.spec.ts
it('should handle add Member form dismissal', fakeAsync(() => {
const modalCtrl = fixture.debugElement.injector.get(ModalController);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
spyOn(AlertMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.component.spec.ts
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
spyOn(AlertMock.prototype,'present');
spyOn(modalCtrl, 'create').and.callThrough();
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.component.spec.ts
spyOn(AlertMock.prototype,'present');
spyOn(modalCtrl, 'create').and.callThrough();
spyOn(modal, 'present').and.callThrough();
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.component.spec.ts
spyOn(modalCtrl, 'create').and.callThrough();
spyOn(modal, 'present').and.callThrough();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
expect(modal.present).toHaveBeenCalled();
expect(component.currentItems).not.toEqual([MemberOne,MemberTwo,MemberThree]);
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
expect(modal.present).toHaveBeenCalled();
expect(component.currentItems).not.toEqual([MemberOne,MemberTwo,MemberThree]);
expect(component.items).not.toEqual([MemberOne,MemberTwo,MemberThree]);
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
expect(component.currentItems).not.toEqual([MemberOne,MemberTwo,MemberThree]);
expect(component.items).not.toEqual([MemberOne,MemberTwo,MemberThree]);
expect(LoadingMock.prototype.dismiss).not.toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
expect(component.items).not.toEqual([MemberOne,MemberTwo,MemberThree]);
expect(LoadingMock.prototype.dismiss).not.toHaveBeenCalled();
expect(AlertControllerMock.prototype.create).not.toHaveBeenCalledWith({
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
expect(LoadingMock.prototype.dismiss).not.toHaveBeenCalled();
expect(AlertControllerMock.prototype.create).not.toHaveBeenCalledWith({
title: 'Added Member',
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
});
expect(AlertMock.prototype.present).not.toHaveBeenCalled();
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Member/Member.component.spec.ts
it('should get all Member participants after an update Member form is completed', fakeAsync(() => {
const modalCtrl = fixture.debugElement.injector.get(ModalController);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
spyOn(AlertMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.component.spec.ts
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
spyOn(AlertMock.prototype,'present');
spyOn(modalCtrl, 'create').and.callThrough();
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.component.spec.ts
spyOn(AlertMock.prototype,'present');
spyOn(modalCtrl, 'create').and.callThrough();
spyOn(modal, 'present').and.callThrough();
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.component.spec.ts
spyOn(modalCtrl, 'create').and.callThrough();
spyOn(modal, 'present').and.callThrough();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
expect(modal.present).toHaveBeenCalled();
expect(serviceMemberPageMock.prototype.getAll).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
expect(modal.present).toHaveBeenCalled();
expect(serviceMemberPageMock.prototype.getAll).toHaveBeenCalled();
expect(component.currentItems).toEqual([MemberOne,MemberTwo,MemberThree]);
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
expect(serviceMemberPageMock.prototype.getAll).toHaveBeenCalled();
expect(component.currentItems).toEqual([MemberOne,MemberTwo,MemberThree]);
expect(component.items).toEqual([MemberOne,MemberTwo,MemberThree]);
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
expect(component.currentItems).toEqual([MemberOne,MemberTwo,MemberThree]);
expect(component.items).toEqual([MemberOne,MemberTwo,MemberThree]);
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
expect(component.items).toEqual([MemberOne,MemberTwo,MemberThree]);
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
expect(AlertControllerMock.prototype.create).toHaveBeenCalledWith({
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
expect(AlertControllerMock.prototype.create).toHaveBeenCalledWith({
title: 'Updated Member',
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
});
expect(AlertMock.prototype.present).toHaveBeenCalled();
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Member/Member.component.spec.ts
it('should handle update Member form dismissal', fakeAsync(() => {
const modalCtrl = fixture.debugElement.injector.get(ModalController);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
spyOn(AlertMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.component.spec.ts
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
spyOn(AlertMock.prototype,'present');
spyOn(modalCtrl, 'create').and.callThrough();
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.component.spec.ts
spyOn(AlertMock.prototype,'present');
spyOn(modalCtrl, 'create').and.callThrough();
spyOn(modal, 'present').and.callThrough();
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.component.spec.ts
spyOn(modalCtrl, 'create').and.callThrough();
spyOn(modal, 'present').and.callThrough();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
expect(modal.present).toHaveBeenCalled();
expect(component.currentItems).not.toEqual([MemberOne,MemberTwo,MemberThree]);
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
expect(modal.present).toHaveBeenCalled();
expect(component.currentItems).not.toEqual([MemberOne,MemberTwo,MemberThree]);
expect(component.items).not.toEqual([MemberOne,MemberTwo,MemberThree]);
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
expect(component.currentItems).not.toEqual([MemberOne,MemberTwo,MemberThree]);
expect(component.items).not.toEqual([MemberOne,MemberTwo,MemberThree]);
expect(LoadingMock.prototype.dismiss).not.toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
expect(component.items).not.toEqual([MemberOne,MemberTwo,MemberThree]);
expect(LoadingMock.prototype.dismiss).not.toHaveBeenCalled();
expect(AlertControllerMock.prototype.create).not.toHaveBeenCalledWith({
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
expect(LoadingMock.prototype.dismiss).not.toHaveBeenCalled();
expect(AlertControllerMock.prototype.create).not.toHaveBeenCalledWith({
title: 'Updated Member',
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.component.spec.ts
});
expect(AlertMock.prototype.present).not.toHaveBeenCalled();
Typescript Error
Cannot find name 'describe'.
src/app/pages/participants/Member/Member.form.component.spec.ts
describe('MemberForm', () => {
let fixture;
Typescript Error
Cannot find name 'beforeEach'.
src/app/pages/participants/Member/Member.form.component.spec.ts
beforeEach(async(() => {
Typescript Error
Cannot find name 'beforeEach'.
src/app/pages/participants/Member/Member.form.component.spec.ts
beforeEach(() => {
participantType = 'Member';
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.form.component.spec.ts
participantType = 'Member';
spyOn(serviceMember.prototype,'get').and.callThrough();
fixture = TestBed.createComponent(MemberForm);
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Member/Member.form.component.spec.ts
it('should create MemberForm component', () => {
expect(component instanceof MemberForm).toBe(true);
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.form.component.spec.ts
it('should create MemberForm component', () => {
expect(component instanceof MemberForm).toBe(true);
});
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Member/Member.form.component.spec.ts
it('should have correct participant identifier property', () => {
expect(component.participantIdentifierProperty).toEqual('email');
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.form.component.spec.ts
it('should have correct participant identifier property', () => {
expect(component.participantIdentifierProperty).toEqual('email');
})
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Member/Member.form.component.spec.ts
it('should have correct title',() => {
component.formType = 'Add';
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.form.component.spec.ts
fixture.detectChanges();
expect(title.nativeElement.textContent).toContain(expectedTitle);
});
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Member/Member.form.component.spec.ts
it('should detect if update form is opened', fakeAsync(() => {
component.formType = 'Update';
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.form.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.form.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.form.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.form.component.spec.ts
spyOn(FormBuilderMock.prototype,'group').and.returnValue(formMock);
spyOn(FormMock.prototype,'setValue');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.form.component.spec.ts
spyOn(FormBuilderMock.prototype,'group').and.returnValue(formMock);
spyOn(FormMock.prototype,'setValue');
spyOn(FormMock.prototype,'get').and.returnValue(formObjectMock);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.form.component.spec.ts
spyOn(FormMock.prototype,'setValue');
spyOn(FormMock.prototype,'get').and.returnValue(formObjectMock);
spyOn(FormObjectMock.prototype,'disable');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.form.component.spec.ts
spyOn(FormMock.prototype,'get').and.returnValue(formObjectMock);
spyOn(FormObjectMock.prototype,'disable');
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.form.component.spec.ts
expect(LoadingControllerMock.prototype.create).toHaveBeenCalledWith({
content: 'Fetching Member001'
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.form.component.spec.ts
expect(LoadingMock.prototype.present).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.form.component.spec.ts
expect(FormMock.prototype.get).toHaveBeenCalledWith('email');
expect(FormObjectMock.prototype.disable).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.form.component.spec.ts
expect(FormMock.prototype.get).toHaveBeenCalledWith('email');
expect(FormObjectMock.prototype.disable).toHaveBeenCalled();
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.form.component.spec.ts
expect(FormObjectMock.prototype.disable).toHaveBeenCalled();
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
}));
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Member/Member.form.component.spec.ts
it('should detect if add form is opened', fakeAsync(() => {
component.formType = 'Add';
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.form.component.spec.ts
spyOn(FormBuilderMock.prototype,'group').and.returnValue(formMock);
spyOn(FormMock.prototype,'setValue');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.form.component.spec.ts
spyOn(FormBuilderMock.prototype,'group').and.returnValue(formMock);
spyOn(FormMock.prototype,'setValue');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.form.component.spec.ts
spyOn(FormMock.prototype,'get').and.returnValue(formObjectMock);
spyOn(FormObjectMock.prototype,'enable');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.form.component.spec.ts
spyOn(FormMock.prototype,'get').and.returnValue(formObjectMock);
spyOn(FormObjectMock.prototype,'enable');
component.ionViewWillEnter();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.form.component.spec.ts
expect(FormMock.prototype.get).toHaveBeenCalledWith('email');
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.form.component.spec.ts
expect(FormObjectMock.prototype.enable).toHaveBeenCalled();
}));
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Member/Member.form.component.spec.ts
it('should submit an add form', fakeAsync(() => {
component.formType = 'Add';
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.form.component.spec.ts
spyOn(component,'addParticipant');
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.form.component.spec.ts
expect(component.addParticipant).toHaveBeenCalled();
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Member/Member.form.component.spec.ts
it('should submit an update form', fakeAsync(() => {
component.formType = 'Update';
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.form.component.spec.ts
spyOn(component,'updateParticipant');
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.form.component.spec.ts
expect(component.updateParticipant).toHaveBeenCalled();
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Member/Member.form.component.spec.ts
it('should add an participant', fakeAsync(() => {
component.formType = 'Add';
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.form.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.form.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.form.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
spyOn(serviceMember.prototype,'add').and.returnValue(new Promise((resolve,reject)=>{resolve()}));
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.form.component.spec.ts
spyOn(LoadingMock.prototype,'present');
spyOn(serviceMember.prototype,'add').and.returnValue(new Promise((resolve,reject)=>{resolve()}));
spyOn(ViewControllerMock,'dismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.form.component.spec.ts
spyOn(serviceMember.prototype,'add').and.returnValue(new Promise((resolve,reject)=>{resolve()}));
spyOn(ViewControllerMock,'dismiss');
component.addParticipant();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.form.component.spec.ts
expect(LoadingControllerMock.prototype.create).toHaveBeenCalledWith({
content: 'Adding Member...'
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.form.component.spec.ts
expect(LoadingMock.prototype.present).toHaveBeenCalled();
expect(serviceMember.prototype.add).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.form.component.spec.ts
expect(LoadingMock.prototype.present).toHaveBeenCalled();
expect(serviceMember.prototype.add).toHaveBeenCalled();
expect(ViewControllerMock.dismiss).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.form.component.spec.ts
expect(serviceMember.prototype.add).toHaveBeenCalled();
expect(ViewControllerMock.dismiss).toHaveBeenCalled();
}));
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Member/Member.form.component.spec.ts
it('should throw an error for invalid add participant', fakeAsync(() => {
component.formType = 'Add';
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.form.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.form.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.form.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
let json = JSON.stringify({error:{message:'Some error'}});
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.form.component.spec.ts
let json = JSON.stringify({error:{message:'Some error'}});
spyOn(serviceMember.prototype,'add').and.returnValue(new Promise((resolve,reject) => {
reject({_body:json})
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.form.component.spec.ts
}));
spyOn(ViewControllerMock,'dismiss');
component.addParticipant();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.form.component.spec.ts
expect(LoadingControllerMock.prototype.create).toHaveBeenCalledWith({
content: 'Adding Member...'
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.form.component.spec.ts
expect(LoadingMock.prototype.present).toHaveBeenCalled();
expect(serviceMember.prototype.add).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.form.component.spec.ts
expect(LoadingMock.prototype.present).toHaveBeenCalled();
expect(serviceMember.prototype.add).toHaveBeenCalled();
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.form.component.spec.ts
expect(serviceMember.prototype.add).toHaveBeenCalled();
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
expect(component.error).toEqual('Some error');
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.form.component.spec.ts
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
expect(component.error).toEqual('Some error');
}));
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Member/Member.form.component.spec.ts
it('should update an participant', fakeAsync(() => {
component.formType = 'Update';
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.form.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.form.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.form.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
spyOn(serviceMember.prototype,'update').and.returnValue(new Promise((resolve,reject)=>{resolve()}));
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.form.component.spec.ts
spyOn(LoadingMock.prototype,'present');
spyOn(serviceMember.prototype,'update').and.returnValue(new Promise((resolve,reject)=>{resolve()}));
spyOn(ViewControllerMock,'dismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.form.component.spec.ts
spyOn(serviceMember.prototype,'update').and.returnValue(new Promise((resolve,reject)=>{resolve()}));
spyOn(ViewControllerMock,'dismiss');
spyOn(FormMock.prototype,'get').and.returnValue(formObjectMock);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.form.component.spec.ts
spyOn(ViewControllerMock,'dismiss');
spyOn(FormMock.prototype,'get').and.returnValue(formObjectMock);
spyOn(FormObjectMock.prototype,'enable');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.form.component.spec.ts
spyOn(FormMock.prototype,'get').and.returnValue(formObjectMock);
spyOn(FormObjectMock.prototype,'enable');
component.updateParticipant();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.form.component.spec.ts
expect(LoadingControllerMock.prototype.create).toHaveBeenCalledWith({
content: 'Updating Member...'
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.form.component.spec.ts
expect(LoadingMock.prototype.present).toHaveBeenCalled();
expect(serviceMember.prototype.update).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.form.component.spec.ts
expect(LoadingMock.prototype.present).toHaveBeenCalled();
expect(serviceMember.prototype.update).toHaveBeenCalled();
expect(ViewControllerMock.dismiss).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.form.component.spec.ts
expect(serviceMember.prototype.update).toHaveBeenCalled();
expect(ViewControllerMock.dismiss).toHaveBeenCalled();
}));
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Member/Member.form.component.spec.ts
it('should throw an error for invalid update participant', fakeAsync(() => {
component.formType = 'Update';
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.form.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.form.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.form.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
let json = JSON.stringify({error:{message:'Some error'}});
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.form.component.spec.ts
let json = JSON.stringify({error:{message:'Some error'}});
spyOn(serviceMember.prototype,'update').and.returnValue(new Promise((resolve,reject) => {
reject({_body:json})
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.form.component.spec.ts
}));
spyOn(ViewControllerMock,'dismiss');
component.updateParticipant();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.form.component.spec.ts
expect(LoadingControllerMock.prototype.create).toHaveBeenCalledWith({
content: 'Updating Member...'
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.form.component.spec.ts
expect(LoadingMock.prototype.present).toHaveBeenCalled();
expect(serviceMember.prototype.update).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.form.component.spec.ts
expect(LoadingMock.prototype.present).toHaveBeenCalled();
expect(serviceMember.prototype.update).toHaveBeenCalled();
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.form.component.spec.ts
expect(serviceMember.prototype.update).toHaveBeenCalled();
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
expect(component.error).toEqual('Some error');
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.form.component.spec.ts
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
expect(component.error).toEqual('Some error');
}));
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/Member/Member.form.component.spec.ts
it('should be able to dismiss form', fakeAsync(() => {
spyOn(ViewControllerMock,'dismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/Member/Member.form.component.spec.ts
it('should be able to dismiss form', fakeAsync(() => {
spyOn(ViewControllerMock,'dismiss');
component.dismiss();
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/Member/Member.form.component.spec.ts
tick();
expect(ViewControllerMock.dismiss).toHaveBeenCalled();
}));
Typescript Error
Cannot find name 'describe'.
src/app/pages/participants/participants.component.spec.ts
describe('ParticipantsPage', () => {
let fixture;
Typescript Error
Cannot find name 'beforeEach'.
src/app/pages/participants/participants.component.spec.ts
beforeEach(async(() => {
Typescript Error
Cannot find name 'beforeEach'.
src/app/pages/participants/participants.component.spec.ts
beforeEach(() => {
fixture = TestBed.createComponent(ParticipantsPage);
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/participants.component.spec.ts
it('should create ParticipantsPage component', () => {
expect(component instanceof ParticipantsPage).toBe(true);
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/participants.component.spec.ts
it('should create ParticipantsPage component', () => {
expect(component instanceof ParticipantsPage).toBe(true);
});
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/participants.component.spec.ts
it('should have correct title',() => {
let title = fixture.debugElement.query(By.css('ion-title'));
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/participants.component.spec.ts
fixture.detectChanges();
expect(title.nativeElement.textContent).toContain('Participants');
});
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/participants.component.spec.ts
it('should initialize with all participants',() => {
expect(component.participantList).toEqual([{'name':'Member','component':MemberPage},{'name':'Auctioneer','component':AuctioneerPage}]);
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/participants.component.spec.ts
it('should initialize with all participants',() => {
expect(component.participantList).toEqual([{'name':'Member','component':MemberPage},{'name':'Auctioneer','component':AuctioneerPage}]);
});
Typescript Error
Cannot find name 'it'.
src/app/pages/participants/participants.component.spec.ts
it('should push correct component for navigation',fakeAsync(() => {
let participant = {'component':{'some':'value'}};
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/participants/participants.component.spec.ts
let participant = {'component':{'some':'value'}};
spyOn(NavControllerMock.prototype,'push');
component.participantTapped('',participant);
Typescript Error
Cannot find name 'expect'.
src/app/pages/participants/participants.component.spec.ts
tick();
expect(NavControllerMock.prototype.push).toHaveBeenCalledWith({'some':'value'});
}));
Typescript Error
Cannot find name 'describe'.
src/app/pages/settings/settings.component.spec.ts
describe('SettingsPage', () => {
let fixture;
Typescript Error
Cannot find name 'beforeEach'.
src/app/pages/settings/settings.component.spec.ts
beforeEach(() => {
Typescript Error
Cannot find name 'beforeEach'.
src/app/pages/settings/settings.component.spec.ts
beforeEach(() => {
fixture = TestBed.createComponent(SettingsPage);
Typescript Error
Cannot find name 'it'.
src/app/pages/settings/settings.component.spec.ts
it('should create SettingsPage component', () => {
expect(component instanceof SettingsPage).toBe(true);
Typescript Error
Cannot find name 'expect'.
src/app/pages/settings/settings.component.spec.ts
it('should create SettingsPage component', () => {
expect(component instanceof SettingsPage).toBe(true);
});
Typescript Error
Cannot find name 'it'.
src/app/pages/settings/settings.component.spec.ts
it('should have correct title',() => {
let title = fixture.debugElement.query(By.css('ion-title'));
Typescript Error
Cannot find name 'expect'.
src/app/pages/settings/settings.component.spec.ts
let title = fixture.debugElement.query(By.css('ion-title'));
expect(title.nativeElement.textContent).toContain('Settings');
});
Typescript Error
Cannot find name 'it'.
src/app/pages/settings/settings.component.spec.ts
it('should initialize configuration form', fakeAsync(() => {
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/settings/settings.component.spec.ts
it('should initialize configuration form', fakeAsync(() => {
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/settings/settings.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/settings/settings.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
spyOn(component,'getConfig').and.returnValue(Promise.resolve('http://restapi/url'));
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/settings/settings.component.spec.ts
spyOn(LoadingMock.prototype,'present');
spyOn(component,'getConfig').and.returnValue(Promise.resolve('http://restapi/url'));
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/settings/settings.component.spec.ts
spyOn(FormBuilderMock.prototype,'group').and.returnValue(formMock);
// spyOn(FormMock.prototype,'get').and.returnValue(formObjectMock);
Typescript Error
Cannot find name 'expect'.
src/app/pages/settings/settings.component.spec.ts
expect(LoadingControllerMock.prototype.create).toHaveBeenCalled();
expect(LoadingMock.prototype.present).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/settings/settings.component.spec.ts
expect(LoadingControllerMock.prototype.create).toHaveBeenCalled();
expect(LoadingMock.prototype.present).toHaveBeenCalled();
expect(component.getConfig).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/settings/settings.component.spec.ts
expect(LoadingMock.prototype.present).toHaveBeenCalled();
expect(component.getConfig).toHaveBeenCalled();
expect(component.restApiUrl).toEqual('http://restapi/url');
Typescript Error
Cannot find name 'expect'.
src/app/pages/settings/settings.component.spec.ts
expect(component.getConfig).toHaveBeenCalled();
expect(component.restApiUrl).toEqual('http://restapi/url');
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/settings/settings.component.spec.ts
expect(component.restApiUrl).toEqual('http://restapi/url');
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
}));
Typescript Error
Cannot find name 'it'.
src/app/pages/settings/settings.component.spec.ts
it('should get config value', fakeAsync(() => {
spyOn(StorageMock.prototype,'get');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/settings/settings.component.spec.ts
it('should get config value', fakeAsync(() => {
spyOn(StorageMock.prototype,'get');
component.getConfig();
Typescript Error
Cannot find name 'expect'.
src/app/pages/settings/settings.component.spec.ts
tick();
expect(StorageMock.prototype.get).toHaveBeenCalledWith('apiURL');
}))
Typescript Error
Cannot find name 'it'.
src/app/pages/settings/settings.component.spec.ts
it('should set config value', fakeAsync(() => {
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/settings/settings.component.spec.ts
it('should set config value', fakeAsync(() => {
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
spyOn(FormMock.prototype,'get').and.returnValue({value:'http://restapi/url'})
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/settings/settings.component.spec.ts
spyOn(AlertControllerMock.prototype,'create').and.returnValue(alertMock);
spyOn(FormMock.prototype,'get').and.returnValue({value:'http://restapi/url'})
spyOn(StorageMock.prototype,'set').and.returnValue(Promise.resolve());
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/settings/settings.component.spec.ts
spyOn(FormMock.prototype,'get').and.returnValue({value:'http://restapi/url'})
spyOn(StorageMock.prototype,'set').and.returnValue(Promise.resolve());
spyOn(AlertMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/settings/settings.component.spec.ts
spyOn(StorageMock.prototype,'set').and.returnValue(Promise.resolve());
spyOn(AlertMock.prototype,'present');
Typescript Error
Cannot find name 'expect'.
src/app/pages/settings/settings.component.spec.ts
expect(AlertControllerMock.prototype.create).toHaveBeenCalledWith({
title: 'Updated Configuration',
Typescript Error
Cannot find name 'expect'.
src/app/pages/settings/settings.component.spec.ts
});
expect(FormMock.prototype.get).toHaveBeenCalledWith('configURL');
expect(StorageMock.prototype.set).toHaveBeenCalledWith('apiURL','http://restapi/url');
Typescript Error
Cannot find name 'expect'.
src/app/pages/settings/settings.component.spec.ts
expect(FormMock.prototype.get).toHaveBeenCalledWith('configURL');
expect(StorageMock.prototype.set).toHaveBeenCalledWith('apiURL','http://restapi/url');
expect(AlertMock.prototype.present).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/settings/settings.component.spec.ts
expect(StorageMock.prototype.set).toHaveBeenCalledWith('apiURL','http://restapi/url');
expect(AlertMock.prototype.present).toHaveBeenCalled();
expect(component.restApiUrl).toEqual('http://restapi/url');
Typescript Error
Cannot find name 'expect'.
src/app/pages/settings/settings.component.spec.ts
expect(AlertMock.prototype.present).toHaveBeenCalled();
expect(component.restApiUrl).toEqual('http://restapi/url');
Typescript Error
Cannot find name 'describe'.
src/app/pages/transaction-view/transaction-view.component.spec.ts
describe('TransactionViewPage', () => {
let fixture;
Typescript Error
Cannot find name 'beforeEach'.
src/app/pages/transaction-view/transaction-view.component.spec.ts
let ViewControllerMock = mockView();
beforeEach(async(() => {
transactionId = 'transactionIdPassedFromAnotherComponent';
Typescript Error
Cannot find name 'beforeEach'.
src/app/pages/transaction-view/transaction-view.component.spec.ts
beforeEach(() => {
fixture = TestBed.createComponent(TransactionViewPage);
Typescript Error
Cannot find name 'it'.
src/app/pages/transaction-view/transaction-view.component.spec.ts
it('should create TransactionViewPage component', () => {
expect(component instanceof TransactionViewPage).toBe(true);
Typescript Error
Cannot find name 'expect'.
src/app/pages/transaction-view/transaction-view.component.spec.ts
it('should create TransactionViewPage component', () => {
expect(component instanceof TransactionViewPage).toBe(true);
});
Typescript Error
Cannot find name 'it'.
src/app/pages/transaction-view/transaction-view.component.spec.ts
it('should have correct title',() => {
let title = fixture.debugElement.query(By.css('ion-title'));
Typescript Error
Cannot find name 'expect'.
src/app/pages/transaction-view/transaction-view.component.spec.ts
fixture.detectChanges();
expect(title.nativeElement.textContent).toContain(transactionType+' // ' +transactionId);
});
Typescript Error
Cannot find name 'it'.
src/app/pages/transaction-view/transaction-view.component.spec.ts
it('should get correct transaction id',() => {
expect(component.transactionId).toEqual('transactionIdPassedFromAnotherComponent');
Typescript Error
Cannot find name 'expect'.
src/app/pages/transaction-view/transaction-view.component.spec.ts
it('should get correct transaction id',() => {
expect(component.transactionId).toEqual('transactionIdPassedFromAnotherComponent');
});
Typescript Error
Cannot find name 'it'.
src/app/pages/transaction-view/transaction-view.component.spec.ts
it('should get correct transaction type',() => {
expect(component.transactionType).toEqual('transactionTypePassedFromAnotherComponent')
Typescript Error
Cannot find name 'expect'.
src/app/pages/transaction-view/transaction-view.component.spec.ts
it('should get correct transaction type',() => {
expect(component.transactionType).toEqual('transactionTypePassedFromAnotherComponent')
});
Typescript Error
Cannot find name 'it'.
src/app/pages/transaction-view/transaction-view.component.spec.ts
it('should fetch data and prepare the view', fakeAsync(() => {
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/transaction-view/transaction-view.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/transaction-view/transaction-view.component.spec.ts
spyOn(LoadingControllerMock.prototype,'create').and.returnValue(loadingMock);
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/transaction-view/transaction-view.component.spec.ts
spyOn(LoadingMock.prototype,'dismiss');
spyOn(LoadingMock.prototype,'present');
spyOn(component, 'getTransaction').and.returnValue(new Promise((resolve,reject)=>{
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/transaction-view/transaction-view.component.spec.ts
spyOn(LoadingMock.prototype,'present');
spyOn(component, 'getTransaction').and.returnValue(new Promise((resolve,reject)=>{
resolve({'$class':'class','property1':'value1','property2':'value2'})
Typescript Error
Cannot find name 'expect'.
src/app/pages/transaction-view/transaction-view.component.spec.ts
expect(LoadingControllerMock.prototype.create).toHaveBeenCalledWith({
content: 'Fetching transactionIdPassedFromAnotherComponent'
Typescript Error
Cannot find name 'expect'.
src/app/pages/transaction-view/transaction-view.component.spec.ts
expect(LoadingMock.prototype.present).toHaveBeenCalled();
Typescript Error
Cannot find name 'expect'.
src/app/pages/transaction-view/transaction-view.component.spec.ts
expect(component.loadedTransaction).toEqual({'$class':'class','property1':'value1','property2':'value2'});
expect(component.loadedTransactionKeys).toEqual(['property1','property2']);
Typescript Error
Cannot find name 'expect'.
src/app/pages/transaction-view/transaction-view.component.spec.ts
expect(component.loadedTransaction).toEqual({'$class':'class','property1':'value1','property2':'value2'});
expect(component.loadedTransactionKeys).toEqual(['property1','property2']);
Typescript Error
Cannot find name 'expect'.
src/app/pages/transaction-view/transaction-view.component.spec.ts
expect(LoadingMock.prototype.dismiss).toHaveBeenCalled();
Typescript Error
Cannot find name 'it'.
src/app/pages/transaction-view/transaction-view.component.spec.ts
it('should call dataservice with correct arguments', () => {
component.transactionId = transactionId;
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/transaction-view/transaction-view.component.spec.ts
component.transactionType = transactionType;
spyOn(DataServiceMock.prototype,'get');
component.getTransaction();
Typescript Error
Cannot find name 'expect'.
src/app/pages/transaction-view/transaction-view.component.spec.ts
component.getTransaction();
expect(DataServiceMock.prototype.get).toHaveBeenCalledWith(transactionType,transactionId);
});
Typescript Error
Cannot find name 'it'.
src/app/pages/transaction-view/transaction-view.component.spec.ts
it('should dismiss modal', () => {
spyOn(ViewControllerMock,'dismiss');
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/transaction-view/transaction-view.component.spec.ts
it('should dismiss modal', () => {
spyOn(ViewControllerMock,'dismiss');
component.dismiss();
Typescript Error
Cannot find name 'expect'.
src/app/pages/transaction-view/transaction-view.component.spec.ts
component.dismiss();
expect(ViewControllerMock.dismiss).toHaveBeenCalled();
});
Typescript Error
Cannot find name 'describe'.
src/app/pages/transactions/CloseBidding/CloseBidding.component.spec.ts
describe('CloseBiddingPage', () => {
let fixture;
Typescript Error
Cannot find name 'beforeEach'.
src/app/pages/transactions/CloseBidding/CloseBidding.component.spec.ts
beforeEach(async(() => {
Typescript Error
Cannot find name 'beforeEach'.
src/app/pages/transactions/CloseBidding/CloseBidding.component.spec.ts
beforeEach(() => {
spyOn(serviceCloseBiddingPageMock.prototype,'getAll').and.callThrough();
Typescript Error
Cannot find name 'spyOn'.
src/app/pages/transactions/CloseBidding/CloseBidding.component.spec.ts
beforeEach(() => {
spyOn(serviceCloseBiddingPageMock.prototype,'getAll').and.callThrough();
fixture = TestBed.createComponent(CloseBiddingPage);
Typescript Error
Cannot find name 'it'.
src/app/pages/transactions/CloseBidding/CloseBidding.component.spec.ts
it('should create CloseBiddingPage component', () => {
expect(component instanceof CloseBiddingPage).toBe(true);
Typescript Error
Cannot find name 'expect'.
src/app/pages/transactions/CloseBidding/CloseBidding.component.spec.ts
it('should create CloseBiddingPage component', () => {
expect(component instanceof CloseBiddingPage).toBe(true);
});
Typescript Error
Cannot find name 'it'.
src/app/pages/transactions/CloseBidding/CloseBidding.component.spec.ts
it('should have correct title',() => {
let title = fixture.debugElement.query(By.css('ion-title'));
I am trying to generate the ionic app but run into this error and the generation stops in Ubuntu.
events.js:183
throw er; // Unhandled 'error' event
^
Error: Error: Error trying to ping. Error: Composer runtime (0.20.0) is not compatible with client (0.19.15)
at Promise.then.catch (/home/zulu/.nvm/versions/node/v8.12.0/lib/node_modules/generator-composer-ionic/generators/app/index.js:518:19)
at <anonymous>
Any ideas on how to get through?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.