Skip to content

Commit

Permalink
fix jasmine setup and clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
ThWoywod committed Apr 2, 2018
1 parent 666e852 commit feb3db5
Show file tree
Hide file tree
Showing 13 changed files with 509 additions and 281 deletions.
6 changes: 6 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"gulp-typescript": "3.1.7",
"gulp-watch": "^5.0.0",
"inversify": "^4.1.1",
"reflect-metadata": "^0.1.12",
"jasmine-ts": "^0.1.3",
"tslint": "^5.4.0",
"typescript": "2.3.4"
Expand Down
1 change: 1 addition & 0 deletions spec/QueueService.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { QueueService, QueueServiceImplementation } from '../src/QueueService';
import { Container } from 'inversify';
import { TYPES } from "../src/Container";
import { Buffer } from 'Buffer';

describe("QueueService", function () {
interface This {
queueService: QueueService;
Expand Down
2 changes: 2 additions & 0 deletions spec/helpers/promise-traces.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// For stack traces on promise rejections
process.on("unhandledRejection", r => console.log(r));
2 changes: 2 additions & 0 deletions spec/helpers/setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

require("reflect-metadata");
5 changes: 5 additions & 0 deletions spec/support/jasmine.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"spec_dir": "spec",
"spec_files": ["**/*[sS]pec.js"],
"helpers": ["helpers/**/*.js"]
}
2 changes: 0 additions & 2 deletions src/QueueService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ export class QueueServiceImplementation implements QueueService {
if (options && options.readonly === false) {
this.queues[queue] = [];
}
console.log(currentQueue);

return currentQueue;
}

Expand Down
6 changes: 6 additions & 0 deletions typings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"globalDependencies": {},
"globalDevDependencies": {
"reflect-metadata": "registry:dt/reflect-metadata#0.0.0+20161005184000"
}
}
270 changes: 0 additions & 270 deletions typings/globals/inversify/index.d.ts

This file was deleted.

8 changes: 0 additions & 8 deletions typings/globals/inversify/typings.json

This file was deleted.

Loading

0 comments on commit feb3db5

Please sign in to comment.