Skip to content

Commit 988decf

Browse files
Copilothsluoyz
andcommitted
Fix yarn.lock syntax error and TypeScript type narrowing in tests
Co-authored-by: hsluoyz <3787410+hsluoyz@users.noreply.github.com>
1 parent 3f3d522 commit 988decf

2 files changed

Lines changed: 1542 additions & 1687 deletions

File tree

test/model/model.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,9 @@ test('TestLoadModelFromConfig', (done) => {
6565
}
6666

6767
if (e instanceof Error) {
68+
const error = e;
6869
requiredSections.forEach((n) => {
69-
if (!e.message.includes(n)) {
70+
if (!error.message.includes(n)) {
7071
throw new Error(`section name: ${sectionNameMap[n]} should be in message`);
7172
}
7273
});

0 commit comments

Comments
 (0)