Skip to content

Commit

Permalink
Progress on example app (#4)
Browse files Browse the repository at this point in the history
Updating tests and packaging
  • Loading branch information
BrianKopp authored Dec 11, 2018
1 parent 3081bd9 commit 39b47ea
Show file tree
Hide file tree
Showing 11 changed files with 245 additions and 186 deletions.
11 changes: 11 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 12 additions & 2 deletions projects/ngrx-cognito/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
{
"name": "ngrx-cognito",
"description": "Cognito workflow in a simple API, maintained in ngrx",
"version": "0.0.1",
"author": "Brian Kopp",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/briankopp/ngrx-cognito.git"
},
"bugs": {
"url": "https://github.com/briankopp/ngrx-cognito/issues"
},
"homepage": "https://github.com/briankopp/ngrx-cognito",
"peerDependencies": {
"@angular/common": "^7.1.2",
"@angular/core": "^7.1.2",
"@ngrx/effects": "^6.1.2",
"@ngrx/store": "^6.1.2",
"amazon-cognito-identity-js": "^3.0.5"
},
"dependencies": {}
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
import { TestBed } from '@angular/core/testing';

import { CognitoService } from './cognito.service';
import { CognitoConfigService } from './cognito-config.service';

describe('CognitoService', () => {
beforeEach(() => TestBed.configureTestingModule({}));
beforeEach(() =>
TestBed.configureTestingModule({
providers: [{ provide: CognitoConfigService, useValue: {} }]
})
);

it('should be created', () => {
const service: CognitoService = TestBed.get(CognitoService);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
import { TestBed } from '@angular/core/testing';

import { RequireLoggedInGuardService } from './require-logged-in-guard.service';
import { CognitoConfigService } from './cognito-config.service';
import { RouterTestingModule } from '@angular/router/testing';
import { StoreModule } from '@ngrx/store';

describe('RequireLoggedInGuardService', () => {
beforeEach(() => TestBed.configureTestingModule({}));
beforeEach(() =>
TestBed.configureTestingModule({
imports: [RouterTestingModule.withRoutes([]), StoreModule.forRoot({})],
providers: [{ provide: CognitoConfigService, useValue: {} }]
})
);

it('should be created', () => {
const service: RequireLoggedInGuardService = TestBed.get(RequireLoggedInGuardService);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
import { TestBed } from '@angular/core/testing';

import { RequireLoggedOutGuardService } from './require-logged-out-guard.service';
import { RouterTestingModule } from '@angular/router/testing';
import { CognitoConfigService } from './cognito-config.service';
import { StoreModule } from '@ngrx/store';

describe('RequireLoggedOutGuardService', () => {
beforeEach(() => TestBed.configureTestingModule({}));
beforeEach(() =>
TestBed.configureTestingModule({
imports: [RouterTestingModule.withRoutes([]), StoreModule.forRoot({})],
providers: [{ provide: CognitoConfigService, useValue: {} }]
})
);

it('should be created', () => {
const service: RequireLoggedOutGuardService = TestBed.get(RequireLoggedOutGuardService);
Expand Down
Loading

0 comments on commit 39b47ea

Please sign in to comment.