aboutsummaryrefslogtreecommitdiff
path: root/test/model.ts
diff options
context:
space:
mode:
Diffstat (limited to 'test/model.ts')
-rw-r--r--test/model.ts16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/model.ts b/test/model.ts
new file mode 100644
index 0000000..4d189dc
--- /dev/null
+++ b/test/model.ts
@@ -0,0 +1,16 @@
+import { Schema } from 'mongoose';
+import model from '../lib/event.model';
+
+interface Context {
+ message: string;
+}
+
+const contextSchema = new Schema({
+ message: String
+});
+
+const CustomEventModel = model<Context>('CustomEvent', contextSchema);
+
+
+export default CustomEventModel;
+