Skip to content

Commit 98a7137

Browse files
Jens-Gclaude
andcommitted
Fix prettier formatting in generated-exceptions test
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 3babdd6 commit 98a7137

1 file changed

Lines changed: 18 additions & 5 deletions

File tree

lib/nodejs/test/generated-exceptions.test.js

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,11 @@ test("ES6 generated exception - super() receives string, not args object", funct
5656
const e = new ttypesEs6.Xception({ errorCode: 1001, message: "test error" });
5757
// The bug was that super(args) passed the args object to TException,
5858
// which would cause message to be "[object Object]"
59-
assert.notEqual(e.message, "[object Object]",
60-
"message is not '[object Object]' (would indicate args object was passed to super)");
59+
assert.notEqual(
60+
e.message,
61+
"[object Object]",
62+
"message is not '[object Object]' (would indicate args object was passed to super)",
63+
);
6164
assert.end();
6265
});
6366

@@ -79,9 +82,19 @@ test("ES5 generated exception - constructor sets name and message correctly", fu
7982
});
8083

8184
test("ES5 and ES6 generated exceptions have consistent behavior", function t(assert) {
82-
const es5 = new ttypesEs5.Xception({ errorCode: 1001, message: "test error" });
83-
const es6 = new ttypesEs6.Xception({ errorCode: 1001, message: "test error" });
85+
const es5 = new ttypesEs5.Xception({
86+
errorCode: 1001,
87+
message: "test error",
88+
});
89+
const es6 = new ttypesEs6.Xception({
90+
errorCode: 1001,
91+
message: "test error",
92+
});
8493
assert.equal(es5.name, es6.name, "name matches between ES5 and ES6");
85-
assert.equal(es5.errorCode, es6.errorCode, "errorCode matches between ES5 and ES6");
94+
assert.equal(
95+
es5.errorCode,
96+
es6.errorCode,
97+
"errorCode matches between ES5 and ES6",
98+
);
8699
assert.end();
87100
});

0 commit comments

Comments
 (0)