Skip to content

Commit

Permalink
Merge pull request #1 from opt-tech/fix-tests
Browse files Browse the repository at this point in the history
Fix tests and setup ci
  • Loading branch information
sisisin authored Apr 21, 2018
2 parents 0576083 + 38d5295 commit 9410707
Show file tree
Hide file tree
Showing 9 changed files with 104 additions and 202 deletions.
20 changes: 20 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: 2
jobs:
build:
working_directory: ~/app
docker:
- image: circleci/node:9.10.1-stretch-browsers
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- run:
name: install-npm-wee
command: npm install
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- ./node_modules
- run:
name: test
command: npm run ci
2 changes: 1 addition & 1 deletion apps/sample/e2e/app.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ describe('sample App', () => {

it('should display welcome message', () => {
page.navigateTo();
expect(page.text()).toContain('Welcome');
expect(page.text()).toContain('Samples');
});
});
1 change: 1 addition & 0 deletions apps/sample/src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<h1>Samples</h1>
<input type="file" fbInput [(file)]="inputFile">
<div>{{inputFile?.name}}</div>

Expand Down
4 changes: 3 additions & 1 deletion apps/sample/src/app/app.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { NO_ERRORS_SCHEMA } from '@angular/core';

import { AppComponent } from './app.component';

Expand All @@ -9,7 +10,8 @@ describe('AppComponent', () => {
beforeEach(
async(() => {
TestBed.configureTestingModule({
declarations: [AppComponent]
declarations: [AppComponent],
schemas: [NO_ERRORS_SCHEMA]
}).compileComponents();
})
);
Expand Down
2 changes: 1 addition & 1 deletion apps/sample/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { AppComponent } from './app.component';
import { BrowserModule } from '@angular/platform-browser';
import { NxModule } from '@nrwl/nx';

import { FbModule } from '../../../../libs/fb/index';
import { FbModule } from '@ng-file-binder/fb';

@NgModule({
imports: [BrowserModule, NxModule.forRoot(), FbModule],
Expand Down
Loading

0 comments on commit 9410707

Please sign in to comment.