Skip to content
This repository has been archived by the owner on May 10, 2021. It is now read-only.

Commit

Permalink
release(version): v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
akanass committed Nov 20, 2017
1 parent b2bb90b commit 20259a6
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion test/integration/application.module.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Config.load();
import { ApplicationModule } from '../../src/application.module';

@suite('- Integration ApplicationModuleTest file')
class ApplicationModuleTest {
export class ApplicationModuleTest {
/**
* Function executed before the suite
*/
Expand Down
12 changes: 6 additions & 6 deletions test/integration/hello-world.service.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ import { test, suite } from 'mocha-typescript';
*/
import * as unit from 'unit.js';

import { Hapiness, HapinessModule, HttpServerExt, Server, Lib, Inject } from '@hapiness/core';
import { Hapiness, HapinessModule, HttpServerExt, Lib } from '@hapiness/core';
import { Observable } from 'rxjs/Observable';

// element to test
import { HelloWorldService } from '../../src/services';

@suite('- Integration HelloWorldServiceTest file')
class HelloWorldServiceTest {
export class HelloWorldServiceTest {
/**
* Function executed before the suite
*/
Expand Down Expand Up @@ -49,7 +49,7 @@ class HelloWorldServiceTest {
testInjectableHelloWorldService(done) {
@Lib()
class HelloWorldLib {
constructor(private _helloWorldService: HelloWorldService, @Inject(HttpServerExt) private _httpServer: Server) {
constructor(private _helloWorldService: HelloWorldService) {
unit.object(this._helloWorldService).isInstanceOf(HelloWorldService);
}
}
Expand Down Expand Up @@ -86,7 +86,7 @@ class HelloWorldServiceTest {
testInjectableHelloWorldServiceSayHello(done) {
@Lib()
class HelloWorldLib {
constructor(private _helloWorldService: HelloWorldService, @Inject(HttpServerExt) private _httpServer: Server) {
constructor(private _helloWorldService: HelloWorldService) {
unit.function(this._helloWorldService.sayHello);
}
}
Expand Down Expand Up @@ -123,7 +123,7 @@ class HelloWorldServiceTest {
testInjectableHelloWorldServiceSayHelloObservable(done) {
@Lib()
class HelloWorldLib {
constructor(private _helloWorldService: HelloWorldService, @Inject(HttpServerExt) private _httpServer: Server) {
constructor(private _helloWorldService: HelloWorldService) {
unit.object(this._helloWorldService.sayHello()).isInstanceOf(Observable);
}
}
Expand Down Expand Up @@ -160,7 +160,7 @@ class HelloWorldServiceTest {
testInjectableHelloWorldServiceSayHelloObservableReturnString(done) {
@Lib()
class HelloWorldLib {
constructor(private _helloWorldService: HelloWorldService, @Inject(HttpServerExt) private _httpServer: Server) {
constructor(private _helloWorldService: HelloWorldService) {
this._helloWorldService.sayHello().subscribe(m => unit.string(m).is('Hello World'))
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/unit/download-image.get.route.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { Buffer } from 'buffer';
import { GetDownloadImageRoute } from '../../src/modules/download/module/routes';

@suite('- Unit GetDownloadImageRouteTest file')
class GetDownloadImageRouteTest {
export class GetDownloadImageRouteTest {
// private property to store mock service instance
private _httpServiceMock: any;
// private property to store route instance
Expand Down
2 changes: 1 addition & 1 deletion test/unit/hello-world.get.route.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { HelloWorldService } from '../../src/services';
import { GetHelloWorldRoute } from '../../src/routes';

@suite('- Unit GetHelloWorldRouteTest file')
class GetHelloWorldRouteTest {
export class GetHelloWorldRouteTest {
// private property to store mock service instance
private _helloWorldServiceMock: any;
// private property to store route instance
Expand Down
2 changes: 1 addition & 1 deletion test/unit/hello-world.service.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { Observable } from 'rxjs/Observable';
import { HelloWorldService } from '../../src/services';

@suite('- Unit HelloWorldServiceTest file')
class HelloWorldServiceTest {
export class HelloWorldServiceTest {
// private property to store service instance
private _helloWorldService: HelloWorldService;

Expand Down

0 comments on commit 20259a6

Please sign in to comment.