Skip to content

Commit a9a329a

Browse files
rob3000wtrocki
authored andcommitted
Moved tests to typescript
1 parent 8f7be0d commit a9a329a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+827
-860
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
"uuid": "~3.4.0"
7474
},
7575
"devDependencies": {
76+
"@types/mocha": "^8.0.3",
7677
"@types/node": "^14.0.27",
7778
"@typescript-eslint/eslint-plugin": "^3.9.0",
7879
"@typescript-eslint/parser": "^3.9.0",

src/index.ts

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,7 @@
11
"use strict";
22

3-
export { KStream } from "./lib/dsl/KStream";
4-
export { KTable } from "./lib/dsl/KTable";
3+
export { KStream, KTable } from "./lib/dsl";
54
export { KafkaFactory } from "./lib/KafkaFactory";
65
export { KafkaStreams } from "./lib/KafkaStreams";
7-
export { KStorage } from "./lib/KStorage.js";
6+
export { KStorage } from "./lib/KStorage";
87
export { KafkaClient } from "./lib/client/KafkaClient";
9-
10-
// module.exports = {
11-
// default: KafkaStreams,
12-
// KStream,
13-
// KTable,
14-
// KafkaFactory,
15-
// KafkaStreams,
16-
// KStorage,
17-
// KafkaClient
18-
// };

src/lib/KStorage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Promise from "bluebird";
1+
import { Promise } from "bluebird";
22

33
export class KStorage {
44
public options: any;

src/lib/KafkaFactory.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import debugFactory from "debug";
2-
const debug = debugFactory("kafka-streams:kafkafactory");
32
import { JSKafkaClient, NativeKafkaClient } from "./client";
43

4+
const debug = debugFactory("kafka-streams:kafkafactory");
5+
56
export class KafkaFactory {
67
public config: any;
78
public batchOptions: any;

src/lib/KafkaStreams.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,5 +157,3 @@ export class KafkaStreams extends EventEmitter {
157157
});
158158
}
159159
}
160-
161-
export default KafkaStreams;

src/lib/actions/KeyCount.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Promise from "bluebird";
1+
import { Promise } from "bluebird";
22

33
/**
44
* used to count keys in a stream

src/lib/actions/LastState.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Promise from "bluebird";
1+
import { Promise } from "bluebird";
22

33
/**
44
* used to hold the last state of key values

src/lib/actions/Max.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Promise from "bluebird";
1+
import { Promise } from "bluebird";
22

33
/**
44
* used to grab the highest value of key values

src/lib/actions/Min.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Promise from "bluebird";
1+
import { Promise } from "bluebird";
22

33
/**
44
* used grab the lowest value of

src/lib/actions/Sum.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Promise from "bluebird";
1+
import { Promise } from "bluebird";
22

33
/**
44
* used to sum up key values in a stream

0 commit comments

Comments
 (0)