Socket
Socket
Sign inDemoInstall

ionic-mocks

Package Overview
Dependencies
0
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

dist/native/nfc.d.ts

0

dist/angular/action-sheet-controller.d.ts

@@ -0,0 +0,0 @@ import { ActionSheetMock } from './action-sheet';

2

dist/angular/action-sheet-controller.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var action_sheet_1 = require("./action-sheet");
var ActionSheetControllerMock = (function () {
var ActionSheetControllerMock = /** @class */ (function () {
function ActionSheetControllerMock() {

@@ -6,0 +6,0 @@ }

export declare class ActionSheetMock {
static instance(): any;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ActionSheetMock = (function () {
var ActionSheetMock = /** @class */ (function () {
function ActionSheetMock() {

@@ -5,0 +5,0 @@ }

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { AlertMock } from './alert';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var alert_1 = require("./alert");
var AlertControllerMock = (function () {
var AlertControllerMock = /** @class */ (function () {
function AlertControllerMock() {

@@ -6,0 +6,0 @@ }

export declare class AlertMock {
static instance(): any;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var AlertMock = (function () {
var AlertMock = /** @class */ (function () {
function AlertMock() {

@@ -5,0 +5,0 @@ }

@@ -0,0 +0,0 @@ import { Observable } from 'rxjs';

@@ -5,3 +5,3 @@ "use strict";

var nav_controller_1 = require("./nav-controller");
var AppMock = (function () {
var AppMock = /** @class */ (function () {
function AppMock() {

@@ -8,0 +8,0 @@ }

export declare class ConfigMock {
static instance(): any;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ConfigMock = (function () {
var ConfigMock = /** @class */ (function () {
function ConfigMock() {

@@ -5,0 +5,0 @@ }

export declare class ContentMock {
static instance(): any;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ContentMock = (function () {
var ContentMock = /** @class */ (function () {
function ContentMock() {

@@ -5,0 +5,0 @@ }

export declare class EventsMock {
static instance(): any;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var EventsMock = (function () {
var EventsMock = /** @class */ (function () {
function EventsMock() {

@@ -5,0 +5,0 @@ }

export declare class FormMock {
static instance(): any;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var FormMock = (function () {
var FormMock = /** @class */ (function () {
function FormMock() {

@@ -5,0 +5,0 @@ }

export declare class HapticMock {
static instance(): any;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var HapticMock = (function () {
var HapticMock = /** @class */ (function () {
function HapticMock() {

@@ -5,0 +5,0 @@ }

@@ -0,0 +0,0 @@ import { ActionSheetMock } from './action-sheet';

@@ -0,0 +0,0 @@ "use strict";

export declare class InfiniteScrollMock {
static instance(): any;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var InfiniteScrollMock = (function () {
var InfiniteScrollMock = /** @class */ (function () {
function InfiniteScrollMock() {

@@ -5,0 +5,0 @@ }

export declare class ItemSlidingMock {
static instance(): any;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ItemSlidingMock = (function () {
var ItemSlidingMock = /** @class */ (function () {
function ItemSlidingMock() {

@@ -5,0 +5,0 @@ }

export declare class IonKeyboardMock {
static instance(): any;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var IonKeyboardMock = (function () {
var IonKeyboardMock = /** @class */ (function () {
function IonKeyboardMock() {

@@ -5,0 +5,0 @@ }

@@ -0,0 +0,0 @@ import { LoadingMock } from './loading';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var loading_1 = require("./loading");
var LoadingControllerMock = (function () {
var LoadingControllerMock = /** @class */ (function () {
function LoadingControllerMock() {

@@ -6,0 +6,0 @@ }

export declare class LoadingMock {
static instance(): any;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var LoadingMock = (function () {
var LoadingMock = /** @class */ (function () {
function LoadingMock() {

@@ -5,0 +5,0 @@ }

@@ -0,0 +0,0 @@ import { MenuMock } from './menu';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var menu_1 = require("./menu");
var MenuControllerMock = (function () {
var MenuControllerMock = /** @class */ (function () {
function MenuControllerMock() {

@@ -6,0 +6,0 @@ }

export declare class MenuMock {
static instance(): any;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var MenuMock = (function () {
var MenuMock = /** @class */ (function () {
function MenuMock() {

@@ -5,0 +5,0 @@ }

@@ -0,0 +0,0 @@ import { ModalMock } from './modal';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var modal_1 = require("./modal");
var ModalControllerMock = (function () {
var ModalControllerMock = /** @class */ (function () {
function ModalControllerMock() {

@@ -6,0 +6,0 @@ }

export declare class ModalMock {
static instance(): any;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ModalMock = (function () {
var ModalMock = /** @class */ (function () {
function ModalMock() {

@@ -5,0 +5,0 @@ }

export declare class NavControllerMock {
static instance(): any;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var view_controller_1 = require("./view-controller");
var NavControllerMock = (function () {
var Observable_1 = require("rxjs/Observable");
var NavControllerMock = /** @class */ (function () {
function NavControllerMock() {

@@ -11,3 +11,3 @@ }

'initPane',
'pangeChanged',
'paneChanged',
'push',

@@ -48,7 +48,13 @@ 'insert',

'setViewPort',
'resize'
'resize',
'viewDidEnter',
'viewDidLeave',
'viewDidLoad',
'viewWillEnter',
'viewWillLeave',
'viewWillUnload'
]);
instance.goToRoot.and.returnValue(Promise.resolve());
instance.initPane.and.returnValue(1);
instance['root'] = view_controller_1.ViewControllerMock.instance();
instance['root'] = {};
instance['rootParams'] = {};

@@ -70,8 +76,8 @@ instance.push.and.returnValue(Promise.resolve());

instance.isTransitioning.and.returnValue(false);
instance.getActive.and.returnValue(view_controller_1.ViewControllerMock.instance());
instance.getActive.and.returnValue({});
instance.isActive.and.returnValue(true);
instance.getByIndex.and.returnValue(view_controller_1.ViewControllerMock.instance());
instance.getPrevious.and.returnValue(view_controller_1.ViewControllerMock.instance());
instance.first.and.returnValue(view_controller_1.ViewControllerMock.instance());
instance.last.and.returnValue(view_controller_1.ViewControllerMock.instance());
instance.getByIndex.and.returnValue({});
instance.getPrevious.and.returnValue({});
instance.first.and.returnValue({});
instance.last.and.returnValue({});
instance.indexOf.and.returnValue(0);

@@ -81,2 +87,8 @@ instance.length.and.returnValue(0);

instance.isSwipeBackEnabled.and.returnValue(true);
instance.viewDidEnter = Observable_1.Observable.of();
instance.viewDidLeave = Observable_1.Observable.of();
instance.viewDidLoad = Observable_1.Observable.of();
instance.viewWillEnter = Observable_1.Observable.of();
instance.viewWillLeave = Observable_1.Observable.of();
instance.viewWillUnload = Observable_1.Observable.of();
return instance;

@@ -83,0 +95,0 @@ };

export declare class NavParamsMock {
static instance(getReturn?: any): any;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var NavParamsMock = (function () {
var NavParamsMock = /** @class */ (function () {
function NavParamsMock() {

@@ -5,0 +5,0 @@ }

export declare class PlatformMock {
static instance(): any;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var PlatformMock = (function () {
var PlatformMock = /** @class */ (function () {
function PlatformMock() {

@@ -5,0 +5,0 @@ }

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { PopoverMock } from './popover';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var popover_1 = require("./popover");
var PopoverControllerMock = (function () {
var PopoverControllerMock = /** @class */ (function () {
function PopoverControllerMock() {

@@ -6,0 +6,0 @@ }

export declare class PopoverMock {
static instance(): any;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var PopoverMock = (function () {
var PopoverMock = /** @class */ (function () {
function PopoverMock() {

@@ -5,0 +5,0 @@ }

export declare class SlidesMock {
static instance(): any;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var SlidesMock = (function () {
var SlidesMock = /** @class */ (function () {
function SlidesMock() {

@@ -5,0 +5,0 @@ }

export declare class TabMock {
static instance(): any;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var TabMock = (function () {
var TabMock = /** @class */ (function () {
function TabMock() {

@@ -5,0 +5,0 @@ }

@@ -0,0 +0,0 @@ import { TabMock } from './tab';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tab_1 = require("./tab");
var TabsMock = (function () {
var TabsMock = /** @class */ (function () {
function TabsMock() {

@@ -6,0 +6,0 @@ }

@@ -0,0 +0,0 @@ import { ToastMock } from './toast';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var toast_1 = require("./toast");
var ToastControllerMock = (function () {
var ToastControllerMock = /** @class */ (function () {
function ToastControllerMock() {

@@ -6,0 +6,0 @@ }

export declare class ToastMock {
static instance(): any;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ToastMock = (function () {
var ToastMock = /** @class */ (function () {
function ToastMock() {

@@ -5,0 +5,0 @@ }

export declare class ViewControllerMock {
static instance(): any;
}

@@ -5,4 +5,3 @@ "use strict";

var nav_params_1 = require("./nav-params");
var nav_controller_1 = require("./nav-controller");
var ViewControllerMock = (function () {
var ViewControllerMock = /** @class */ (function () {
function ViewControllerMock() {

@@ -64,3 +63,3 @@ }

instance.subscribe.and.returnValue(rxjs_1.Observable.of({}));
instance.getNav.and.returnValue(nav_controller_1.NavControllerMock.instance());
instance.getNav.and.returnValue({});
instance.getIONContent.and.returnValue({});

@@ -67,0 +66,0 @@ instance['writeReady'] = {

export * from './native';
export * from './angular';
export * from './ionic';

@@ -0,0 +0,0 @@ "use strict";

import { StorageMock } from './storage';
export { StorageMock };

@@ -0,0 +0,0 @@ "use strict";

export declare class StorageMock {
static instance(key?: any, value?: any): any;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var StorageMock = (function () {
var StorageMock = /** @class */ (function () {
function StorageMock() {

@@ -5,0 +5,0 @@ }

@@ -0,0 +0,0 @@ "use strict";

export declare class GoogleAnalyticsMock {
static instance(): any;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var GoogleAnalyticsMock = (function () {
var GoogleAnalyticsMock = /** @class */ (function () {
function GoogleAnalyticsMock() {

@@ -5,0 +5,0 @@ }

@@ -7,2 +7,3 @@ import { SplashScreenMock } from './splash-screen';

import { GoogleAnalyticsMock } from './google-analytics';
export { KeyboardMock, SplashScreenMock, StatusBarMock, ThreeDeeTouchMock, NetworkMock, GoogleAnalyticsMock };
import { NFCMock } from './nfc';
export { KeyboardMock, SplashScreenMock, StatusBarMock, ThreeDeeTouchMock, NetworkMock, GoogleAnalyticsMock, NFCMock };

@@ -15,2 +15,4 @@ "use strict";

exports.GoogleAnalyticsMock = google_analytics_1.GoogleAnalyticsMock;
var nfc_1 = require("./nfc");
exports.NFCMock = nfc_1.NFCMock;
//# sourceMappingURL=index.js.map
export declare class KeyboardMock {
static instance(): any;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Observable_1 = require("rxjs/Observable");
var KeyboardMock = (function () {
var KeyboardMock = /** @class */ (function () {
function KeyboardMock() {

@@ -6,0 +6,0 @@ }

export declare class NetworkMock {
static instance(networkType: string): any;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Observable_1 = require("rxjs/Observable");
var NetworkMock = (function () {
var NetworkMock = /** @class */ (function () {
function NetworkMock() {

@@ -6,0 +6,0 @@ }

export declare class SplashScreenMock {
static instance(): any;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var SplashScreenMock = (function () {
var SplashScreenMock = /** @class */ (function () {
function SplashScreenMock() {

@@ -5,0 +5,0 @@ }

export declare class StatusBarMock {
static instance(): any;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var StatusBarMock = (function () {
var StatusBarMock = /** @class */ (function () {
function StatusBarMock() {

@@ -5,0 +5,0 @@ }

export declare class ThreeDeeTouchMock {
static instance(): any;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Observable_1 = require("rxjs/Observable");
var ThreeDeeTouchMock = (function () {
var ThreeDeeTouchMock = /** @class */ (function () {
function ThreeDeeTouchMock() {

@@ -6,0 +6,0 @@ }

{
"name": "ionic-mocks",
"version": "1.0.1",
"version": "1.0.2",
"description": "Stubbed and Pre-mocked Ionic2+ Objects",

@@ -5,0 +5,0 @@ "repository": "git@github.com:stonelasley/ionic-mocks.git",

@@ -47,2 +47,3 @@ [![Build Status](https://travis-ci.org/stonelasley/ionic-mocks.svg?branch=master)](https://travis-ci.org/stonelasley/ionic-mocks)

- Network
- NFC
- Splashscreen

@@ -135,3 +136,11 @@ - StatusBar

```
# Contributing
This project has a long way to go and is full of opportunities to contribute.
I am back in school and working so for the rest of the year expect my responsiveness on this project to be slow. If anyone is up to helping vet PRs please message me. sclarklasley@gmail.com
## Contributors
- [Felix Whittmann](https://github.com/hfwittmann)
- [Leif Wells](https://github.com/leifwells)
- [Damir Arh](https://github.com/damirarh)
- [Rvdleun](https://github.com/rvdleun)
### Frequently Asked Questions:

@@ -158,4 +167,3 @@

// DO THIS
{ provide: App, useClass: () => AppMock.instance() }
{ provide: App, useFactory: () => AppMock.instance() }
```

@@ -0,0 +0,0 @@ {

{
"extends": "tslint-ionic-rules"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc