Permalink
Browse files

fix spec, remove spec-files from code-coverage

  • Loading branch information...
Novaal committed Aug 15, 2018
1 parent e1a7c03 commit 1046a38e7ba0503fb2e2b8c37a53810b74048af8
Showing with 3 additions and 3 deletions.
  1. +1 −1 gulpfile.js
  2. +2 −2 spec/components/unifier/response-handler/handler-proxy-factory.spec.ts
@@ -46,7 +46,7 @@ gulp.task("clean", function() {
/** Runs all tests. We dont need to emit sourcemaps here since jasmine-ts handles this for us. */
gulp.task("test", ["build-sources"], shell.task('jasmine-ts "**/*.spec.ts"'));
gulp.task("test-coverage", ["build-sources"], shell.task('nyc -e .ts -x "*.spec.ts" jasmine-ts "**/*.spec.ts"'));
gulp.task("test-coverage", ["build-sources"], shell.task('nyc --exclude "spec" -e .ts -x "*.spec.ts" jasmine-ts "**/*.spec.ts"'));
/** Watches file changes in source or spec files and executes specs automatically */
gulp.task("specs-watcher", ["build-sources"], function() {
@@ -121,7 +121,7 @@ describe("HandlerProxyFactory", function() {
describe("with logging only", function() {
beforeEach(async function(this: CurrentThisContext) {
this.logger = this.container.inversifyInstance.get(injectionNames.logger);
spyOn(this.logger, "warn").and.callThrough();
spyOn(this.logger, "debug").and.callThrough();
this.container.inversifyInstance.unbind(injectionNames.logger);
this.container.inversifyInstance.bind(injectionNames.logger).toConstantValue(this.logger);
@@ -133,7 +133,7 @@ describe("HandlerProxyFactory", function() {
checkProxiedInstance();
it("calls logger", async function(this: CurrentThisContext) {
expect(this.logger.warn).toHaveBeenCalled();
expect(this.logger.debug).toHaveBeenCalled();
});
});

0 comments on commit 1046a38

Please sign in to comment.