Browse Source

PArtial commit

master
kj1352 6 years ago
parent
commit
1583593305
4 changed files with 23 additions and 3 deletions
  1. +2
    -2
      src/app/app.module.ts
  2. +0
    -1
      src/app/mocks/malls.ts
  3. +12
    -0
      src/app/services/cart-item.service.spec.ts
  4. +9
    -0
      src/app/services/cart-item.service.ts

+ 2
- 2
src/app/app.module.ts View File

@@ -6,13 +6,12 @@ import { IonicModule, IonicRouteStrategy } from '@ionic/angular';
import { SplashScreen } from '@ionic-native/splash-screen/ngx';
import { StatusBar } from '@ionic-native/status-bar/ngx';

// Modules import for Modals

// Services import
import { MallService } from './services/mall.service';
import { MenuItemService } from './services/menu-item.service';
import { OfferService } from './services/offer.service';
import { OutletService } from './services/outlet.service';
import { CartItemService } from './services/cart-item.service';

import { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.module';
@@ -34,6 +33,7 @@ import { environment } from '../environments/environment';
MenuItemService,
OfferService,
OutletService,
CartItemService,
{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy }
],
bootstrap: [AppComponent]


+ 0
- 1
src/app/mocks/malls.ts View File

@@ -1,4 +1,3 @@
import Offer from '../models/offer';
import Mall from '../models/mall';
import { OUTLETS } from './outlets';



+ 12
- 0
src/app/services/cart-item.service.spec.ts View File

@@ -0,0 +1,12 @@
import { TestBed } from '@angular/core/testing';

import { CartItemService } from './cart-item.service';

describe('CartItemService', () => {
beforeEach(() => TestBed.configureTestingModule({}));

it('should be created', () => {
const service: CartItemService = TestBed.get(CartItemService);
expect(service).toBeTruthy();
});
});

+ 9
- 0
src/app/services/cart-item.service.ts View File

@@ -0,0 +1,9 @@
import { Injectable } from '@angular/core';

@Injectable({
providedIn: 'root'
})
export class CartItemService {

constructor() { }
}

Loading…
Cancel
Save