Skip to content

Commit f939d03

Browse files
committed
fix tests
1 parent 8c1cd36 commit f939d03

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

test/ExtensionCodec.test.ts

+8-2
Original file line numberDiff line numberDiff line change
@@ -98,16 +98,22 @@ describe("ExtensionCodec", () => {
9898

9999
context("custom extensions with custom context", () => {
100100
class Context {
101+
public ctxVal: number;
101102
public expectations: Array<any> = [];
102-
constructor(public ctxVal: number) {}
103+
constructor(ctxVal: number) {
104+
this.ctxVal = ctxVal;
105+
}
103106
public hasVisited(val: any) {
104107
this.expectations.push(val);
105108
}
106109
}
107110
const extensionCodec = new ExtensionCodec<Context>();
108111

109112
class Magic<T> {
110-
constructor(public val: T) {}
113+
public val: T;
114+
constructor(val: T) {
115+
this.val = val;
116+
}
111117
}
112118

113119
// Magic

0 commit comments

Comments
 (0)