Skip to content

Commit

Permalink
Bump version, run format
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanocokoljic committed Feb 2, 2024
1 parent 4e51cf5 commit 586c19a
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 275 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jsthermalcomfort",
"version": "0.1.5",
"version": "0.2.0",
"description": "A JavaScript package to calculate thermophysiological, thermal comfort, thermal stress indices",
"type": "module",
"files": [
Expand Down
304 changes: 31 additions & 273 deletions tests/models/1_run_setters.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,8 @@
{
"next": 30,
"expected": [
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0
30.0, 30.0, 30.0, 30.0, 30.0, 30.0, 30.0, 30.0, 30.0, 30.0, 30.0,
30.0, 30.0, 30.0, 30.0, 30.0, 30.0
]
}
]
Expand All @@ -32,23 +17,8 @@
{
"next": 30,
"expected": [
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0
30.0, 30.0, 30.0, 30.0, 30.0, 30.0, 30.0, 30.0, 30.0, 30.0, 30.0,
30.0, 30.0, 30.0, 30.0, 30.0, 30.0
]
}
]
Expand All @@ -59,22 +29,9 @@
{
"next": 30,
"expected": [
30.0,
30.0,
30.0,
30.0,
29.999999999999996,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.000000000000004,
29.999999999999996,
30.000000000000004,
30.000000000000004,
29.999999999999996,
30.0, 30.0, 30.0, 30.0, 29.999999999999996, 30.0, 30.0, 30.0, 30.0,
30.0, 30.0, 30.000000000000004, 29.999999999999996,
30.000000000000004, 30.000000000000004, 29.999999999999996,
30.000000000000004
]
}
Expand All @@ -86,23 +43,8 @@
{
"next": 55,
"expected": [
55.0,
55.0,
55.0,
55.0,
55.0,
55.0,
55.0,
55.0,
55.0,
55.0,
55.0,
55.0,
55.0,
55.0,
55.0,
55.0,
55.0
55.0, 55.0, 55.0, 55.0, 55.0, 55.0, 55.0, 55.0, 55.0, 55.0, 55.0,
55.0, 55.0, 55.0, 55.0, 55.0, 55.0
]
}
]
Expand All @@ -113,23 +55,8 @@
{
"next": 0.2,
"expected": [
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2
0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2,
0.2, 0.2, 0.2
]
}
]
Expand Down Expand Up @@ -181,23 +108,8 @@
{
"next": 1,
"expected": [
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0
]
}
]
Expand All @@ -215,181 +127,27 @@
"property": "body_temp",
"operations": [
{
"next":[
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0
"next": [
39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0,
39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0,
39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0,
39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0,
39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0,
39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0,
39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0,
39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0
],
"expected": [
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0
39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0,
39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0,
39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0,
39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0,
39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0,
39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0,
39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0,
39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0, 39.0
]
}
]
}
]
]
2 changes: 1 addition & 1 deletion tests/models/JOS3.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe("JOS3", () => {
} else {
throw new Error(`whoops, not implemented for "${typeof expected}"`);
}
}
};

describe("getters return correct values", () => {
const jos = new JOS3();
Expand Down

0 comments on commit 586c19a

Please sign in to comment.