-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More tests + Got working test coverage
- Loading branch information
1 parent
777cd71
commit af47564
Showing
4 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
lcov.info | ||
coverage/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,6 @@ | |
"zod-to-json-schema": "^3.23.1" | ||
}, | ||
"engines": { | ||
"node": ">=20" | ||
"node": ">=20.16.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import assert from "node:assert/strict"; | ||
import { before, describe, test } from "node:test"; | ||
import { BmiClass } from "./bmi"; | ||
|
||
describe("BmiClass", () => { | ||
let bmi: BmiClass; | ||
before(() => { | ||
bmi = new BmiClass(); | ||
}); | ||
|
||
describe("get_component_name", () => { | ||
test("returns the component name", () => { | ||
assert.strictEqual( | ||
bmi.get_component_name(), | ||
"Chemistry Land-surface Atmosphere Soil Slab model", | ||
); | ||
}); | ||
}); | ||
}); |