Skip to content

Commit

Permalink
fix(): Fixed issue It does not work in Angular 2 RC.4
Browse files Browse the repository at this point in the history
  • Loading branch information
akserg committed Jul 25, 2016
1 parent cdf2eaf commit 8c20a3f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion bundles/ng2-slim-loading-bar.min.js

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

1 change: 1 addition & 0 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ module.exports = function(config) {
'node_modules/zone.js/dist/zone.js',
'node_modules/zone.js/dist/long-stack-trace-zone.js',
'node_modules/zone.js/dist/jasmine-patch.js',
'node_modules/zone.js/dist/async-test.js',
'node_modules/zone.js/dist/fake-async-test.js',
'node_modules/systemjs/dist/system.src.js',
'node_modules/reflect-metadata/Reflect.js',
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
"typings": "./ng2-slim-loading-bar.d.ts",
"homepage": "https://github.com/akserg/ng2-slim-loading-bar",
"dependencies": {
"@angular/common": "^2.0.0-rc.1",
"@angular/compiler": "^2.0.0-rc.1",
"@angular/core": "^2.0.0-rc.1",
"@angular/platform-browser": "^2.0.0-rc.1",
"@angular/platform-browser-dynamic": "^2.0.0-rc.1",
"@angular/common": "^2.0.0-rc.4",
"@angular/compiler": "^2.0.0-rc.4",
"@angular/core": "^2.0.0-rc.4",
"@angular/platform-browser": "^2.0.0-rc.4",
"@angular/platform-browser-dynamic": "^2.0.0-rc.4",
"es6-promise": "~3.1.2",
"es6-shim": "~0.35.0",
"reflect-metadata": "0.1.2",
Expand Down
7 changes: 4 additions & 3 deletions tests/component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import {
//injectAsync,
beforeEachProviders,
fakeAsync,
tick
tick,
async
} from '@angular/core/testing';

import {
Expand Down Expand Up @@ -36,7 +37,7 @@ export function main() {
});

// beforeEach(injectAsync([TestComponentBuilder], (tcb:TestComponentBuilder) => {
beforeEach(inject([TestComponentBuilder], (tcb:TestComponentBuilder) => {
beforeEach(async(inject([TestComponentBuilder], (tcb:TestComponentBuilder) => {
return tcb.createAsync(SlimLoadingBar).then((cf:ComponentFixture<any>) => {
componentFixture = cf;
let element = componentFixture.elementRef.nativeElement;
Expand All @@ -45,7 +46,7 @@ export function main() {
component = componentFixture.componentInstance;
componentFixture.detectChanges();
});
}));
})));

it('should be defined', () => {
expect(containerDiv).toBeDefined();
Expand Down

0 comments on commit 8c20a3f

Please sign in to comment.