We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7d455a commit 92916aaCopy full SHA for 92916aa
spec/logger.spec.ts
@@ -109,6 +109,22 @@ describe(`logger (${
109
});
110
111
112
+ it('should not alter parameters that are logged', () => {
113
+ const circ: any = { b: 'foo' };
114
+ circ.array = [circ];
115
+ circ.object = circ;
116
+ const entry: logger.LogEntry = {
117
+ severity: 'ERROR',
118
+ message: 'testing circular',
119
+ circ,
120
+ };
121
+ logger.write(entry);
122
+
123
+ expect(circ.array[0].b).to.equal('foo');
124
+ expect(circ.object.b).to.equal('foo');
125
+ expect(circ.object.array[0].object.array[0].b).to.equal('foo');
126
+ });
127
128
for (const severity of ['DEBUG', 'INFO', 'NOTICE']) {
129
it(`should output ${severity} severity to stdout`, () => {
130
let entry: logger.LogEntry = {
0 commit comments